-->
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.  [ 2 posts ] 
Author Message
 Post subject: Search, get boost
PostPosted: Wed Oct 19, 2011 11:25 am 
Newbie

Joined: Fri Apr 08, 2011 6:24 am
Posts: 9
Hi, I use projection for querying and I want to get boost value. There are:
FullTextQuery.BOOST
FullTextQuery.SCORE

boost is marked as depreciated and "always return 1", but what is score? It is same? Or there is another way to get acces to boos value? I have a problem with finding it in docs. It seems that FullTextQuery.SCORE returns diffrent value than I expect (if it would be similar to boost value)


Top
 Profile  
 
 Post subject: Re: Search, get boost
PostPosted: Wed Oct 19, 2011 6:37 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
no BOOST is a value used at indexing time and not stored in the index, hence once written you can't retrieve the value during queries.

SCORE represents how close the hit matches with your query, to understand how it's computed from your query use EXPLANATION.

_________________
Sanne
http://in.relation.to/


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

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.