Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
6.3.3. Running Infinispan Query DSL-based Queries
Once Infinispan Query DSL-based queries have been enabled, obtain a
QueryFactory from the SearchManager in order to run a DSL-based query.
A query can then be constructed as follows:
It is also possible to combine multiple conditions with boolean operators, including sub-conditions. For example:
This query API simplifies the way queries are written by not exposing the user to the low level details of constructing Lucene query objects. It also has the benefit of being available to remote Hot Rod clients.
The following example shows how to write a query for the
Book entity.
Example 6.3. Querying the Book Entity