이 콘텐츠는 선택한 언어로 제공되지 않습니다.
12.5. Searching
To execute a search, create a Lucene query (see Section 15.1.1, “Building a Lucene Query Using the Lucene-based Query API”). Wrap the query in a
org.infinispan.query.CacheQuery
to get the required functionality from the Lucene-based API. The following code prepares a query against the indexed fields. Executing the code returns a list of Book
s.
Example 12.2. Using Infinispan Query to Create and Execute a Search