The query printed out below used in Luke works fine and gives me 5 hits - BUT in my test case in hibernate search I get only 1 hit.
The Query I use in Luke is the exact one printed out from logger below. I use the same StandarAnalyzer in Luke an in my code.
Code:
MultiFieldQueryParser parser = new MultiFieldQueryParser(fields, new StandardAnalyzer());
org.apache.lucene.search.Query query = parser.parse(queryString);
logger.info( "Lucene query string :" + query.toString() );
In the Hibernate Search log I see it finds one but then :
[main] org.hibernate.search.engine.ObjectLoaderHelper - Object found in Search index but not in database: class ch...... CK[868980,3]
..
This is a unfortunately a showstopper if there is no workaround.
Kind regards
Georges