Hi John,
you should avoid mixing and matching the
Criteria API with the
Search (fulltext query) API. In fact the documentation says:
Quote:
Only fetch mode can be adjusted, refrain from applying any other restriction.
We recommend to index all data you need for your searches and uses fulltext queries only. Obviously you are also interested in some aggregate functions which might require a different approach. This will depend on your usecase. Maybe Lucene
Filters can help or faceting? Or maybe you should just use the
Criteria API without the fulltext search.