In library mode, running Infinispan Query DSL-based queries is almost identical to running Lucene-based API queries. Prerequisites are:
All libraries required for Infinispan Query on the classpath. Refer to the Administration and Configuration Guide for details.
Indexing enabled and configured for caches (optional). Refer to the Administration and Configuration Guide for details.
Annotated POJO cache values (optional). If indexing is not enabled, POJO annotations are also not required and are ignored if set. If indexing is not enabled, all fields that follow JavaBeans conventions are searchable instead of only the fields with Hibernate Search annotations.