---------Please Delete - I was just silly.....--------------------------
I canĀ“t understand the following behaviour of Hibernate Search.
There is an Index containing the description field of my Objects, and finding SINGLE objects is no problem.
A Query that should result in more than one result, does always contain only ONE.
This is the code:
Code:
private static final String infoType1Desc = "Beschreibung des Infotypes 1 blah";
private static final String infoType2Desc = "Eine andere Beschreibung blah";
private static final String infoType3Desc = "Hibernate Search ist klasse blah";
private static final String searchType1 = "Infotypes";
private static final String searchType2 = "blah";
private static final String searchType3 = "Hibernate";
//some other code
QueryParser qParser2 = new QueryParser("description", new StandardAnalyzer());
org.apache.lucene.search.Query luceneQuery2 = qParser2.parse(searchType2);
org.hibernate.Query fullTextQuery2 = fullTextSession.createFullTextQuery(luceneQuery2);
List<TInformationTypes> result2 = fullTextQuery.list();
//some other code
The result2 does always contain 1 TInformationType.
Even if the same Query with luke gives me 2 results.
What am I doing, wrong, or is this a problem with HibernateSearch?
Many thanks for any help in advance.
Best regards
einherier