lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: Boosting numerical field
Date Sat, 19 May 2012 11:34:46 GMT
You can use CustomScoreQuery with ValueSources.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de

> -----Original Message-----
> From: Meeraj Kunnumpurath [mailto:meeraj.kunnumpurath@asyska.com]
> Sent: Saturday, May 19, 2012 1:20 PM
> To: java-user@lucene.apache.org
> Subject: Re: Boosting numerical field
> 
> Hi,
> 
> Is this available only with Solr or would it work if I am using plain
Lucene?
> 
> Regards
> Meeraj
> 
> On Sat, May 19, 2012 at 9:07 AM, Ahmet Arslan <iorixxx@yahoo.com> wrote:
> 
> >
> > > Is there anyway in a query, I can boost the relevance of a hit based
> > > on the value of a numerical field in the index.
> > > i.e higher the value of the field, more relevant the hit is.
> >
> > Yes it is possible. Like view count, popularity etc. You can use
> > e(dismax)'s bf boosting function (additive or multiplicative.
> >
> >
> > http://wiki.apache.org/solr/ExtendedDisMax#boost_.28Boost_Function.2C_
> > multiplicative.29
> >
> >
> > http://wiki.apache.org/solr/ExtendedDisMax#bf_.28Boost_Function.2C_add
> > itive.29
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message