|
Hibernate Search FAQ
How to get started?
No files are created in index directory, even on manual indexing.Hibernate Search won't create a new index in existing directories. The fundamental Lucene index files are created at framework startup, but existing directories are not modified. Delete the directory: the framework will create it and build the basic index structure at startup. Can I mix HQL and Lucene queries?This is not possible as there is no way to intersect the results from both queries without iterating on at least one of the results. You may consider adding additional fields to the Lucene index and then look at the Filters in the reference documentation. When I retrieve the number of results and the result list, I see two queriesIf you plan to return the number of matching results and the list of results, you should call the methods in the following order fullTextQuery.list(); //or iterate or scroll fillTextQuery.getResultSize(); This will execute a single Lucene query instead of two and will be faster. |
||||||||