lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lev Alyshayev <lev.alysha...@gmail.com>
Subject Re: FunctionQuery
Date Sun, 12 Dec 2010 20:56:53 GMT
Ahmet, Thanks, it worked (eventually)...

On Sun, Dec 12, 2010 at 9:11 PM, Ahmet Arslan <iorixxx@yahoo.com> wrote:

>
> --- On Sun, 12/12/10, Lev Alyshayev <lev.alyshayev@gmail.com> wrote:
>
> > From: Lev Alyshayev <lev.alyshayev@gmail.com>
> > Subject: FunctionQuery
> > To: java-user@lucene.apache.org
> > Date: Sunday, December 12, 2010, 8:42 PM
> > Hello there,
> >
> > I am trying to solve a problem where I use a new
> > FunctionQuery to sort the
> > results by changing the score. The functionality works
> > great when I actually
> > find results and it sorts them exactly the way I intended.
> >
> > My problem is that when there are no results found, from
> > some reason the
> > function is being used on all documents, rather then on no
> > documents. Same
> > query without the function query brings no results, but
> > when I add a
> > function query it returns me all documents after putting
> > them through the
> > function I created.
> >
> > When I search for the following I get no results:
> > http://localhost:8983/solr/select/?q=text:something&fl=score
> >
> > Same query with the function query included, gives me all
> > documents in the
> > index:
> > http://localhost:8983/solr/select/?q=text:something+_val_
> > :"eqsim(somefield,sometext)"&fl=score
>
> When you use _val_ hook, it uses addition operator.
>
> To use multiplication (scores are multiplied) you can use
> http://lucene.apache.org/solr/api/org/apache/solr/search/BoostQParserPlugin.html
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message