-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Please Delete
PostPosted: Tue Apr 24, 2007 5:02 am 
Newbie

Joined: Fri Apr 20, 2007 10:31 am
Posts: 10

---------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

_________________
Meine Webseite (German):

Germanische Mythologie


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.