-->
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: Hibernate Search - only get items to a certain score
PostPosted: Thu Feb 14, 2008 6:51 am 
Newbie

Joined: Tue Dec 04, 2007 4:53 am
Posts: 5
I'm using Hibernate Search in order to perform fulltext searches on my domain objects. It just worked out of the box and the documentation is also great so thanks a lot for this project.

However I wondered if there might be a way to tell lucene that only results with a certain score value (I don't know if score is the right expression - what I mean is the value from 0 to 1 where 1 is an exact match; Luke e.g. uses the term "score" for that).
As I did not use Lucene so far, I was looking for a method in the FullTextQuery class like "setMinScore(0.3)", which then only considers items with a minimum score value of 0.3, everything below should be ommited. Is there an easy way to do that, or how would the approach using Filters would look like?

Thanks in advance


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.