| Hello Yoann Rodière, unfortunately the FulltextSession is not involved since I am not using ORM, but Integrating Infinispan with Hibernate Search [1] , and that integration essentially creates a query from the SearchFactory. So my PR is just a workaround, but ideally an API should be in place in order to migrate
hSearchQuery = searchFactory.createHSQuery();
hSearchQuery
.luceneQuery(luceneQuery)
.targetedEntities(Arrays.asList(classes));
so that it works both with a Elasticsearch and plain Directory backends, with the lucene query translation working. [1] https://github.com/infinispan/infinispan/blob/master/query/src/main/java/org/infinispan/query/impl/CacheQueryImpl.java |