-->
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.  [ 3 posts ] 
Author Message
 Post subject: Scoring by numeric property
PostPosted: Mon Jan 21, 2013 11:23 am 
Newbie

Joined: Tue Nov 13, 2012 10:19 am
Posts: 5
Hello,

I have started to work with Hibernate Search and there is functionality that I don't know how to implement it, I have checked on Internet and in Hibernate Search in Action.

I want to modify the scoring or relevance of the documents by the values of a 'numeric' field.

For example,
Document -> field title | field value
Document 1 -> 'the car of Peter' | '5'
Document 2 -> 'the car of Peter' | '3'
Document 3 -> 'the car of Peter' | '7'

In this case, I would like to receive the document in the order: Document 3, Document 1 and Document 2.

I don't want to sort by field value or by field title and field value. I want to modify the scoring returned by Lucene applying the field value. It's something similar to Google giving preference to the results more visited by the users.

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Scoring by numeric property
PostPosted: Tue Jan 22, 2013 6:06 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
yes you can do that, we call it "Dynamic Boosting" as the boost factor is the option which influences scoring.

http://docs.jboss.org/hibernate/search/4.2/reference/en-US/html_single/#d0e3344

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


Top
 Profile  
 
 Post subject: Re: Scoring by numeric property
PostPosted: Tue Jan 22, 2013 7:13 am 
Newbie

Joined: Tue Nov 13, 2012 10:19 am
Posts: 5
Thank you very much


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.