lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <markus.jel...@openindex.io>
Subject RE: Query ReRanking question
Date Fri, 05 Sep 2014 16:33:54 GMT
Hi - You can already achieve this by boosting on the document's recency. The result set won't
be exactly ordered by date but you will get the most relevant and recent documents on top.

Markus 

-----Original message-----
> From:Ravi Solr <ravisolr@gmail.com <mailto:ravisolr@gmail.com> >
> Sent: Friday 5th September 2014 18:06
> To: solr-user@lucene.apache.org <mailto:solr-user@lucene.apache.org> 
> Subject: Re: Query ReRanking question
> 
> Thank you very much for responding. I want to do exactly the opposite of
> what you said. I want to sort the relevant docs in reverse chronology. If
> you sort by date before hand then the relevancy is lost. So I want to get
> Top N relevant results and then rerank those Top N to achieve relevant
> reverse chronological results.
> 
> If you ask Why would I want to do that ??
> 
> Lets take a example about Malaysian airline crash. several articles might
> have been published over a period of time. When I search for - malaysia
> airline crash blackbox - I would want to see "relevant" results but would
> also like to see the the recent developments on the top i.e. effectively a
> reverse chronological order within the relevant results, like telling a
> story over a period of time
> 
> Hope i am clear. Thanks for your help.
> 
> Thanks
> 
> Ravi Kiran Bhaskar
> 
> 
> On Thu, Sep 4, 2014 at 5:08 PM, Joel Bernstein <joelsolr@gmail.com <mailto:joelsolr@gmail.com>
> wrote:
> 
> > If you want the main query to be sorted by date then the top N docs
> > reranked by a query, that should work. Try something like this:
> >
> > q=foo&sort=date+desc&rq={!rerank reRandDocs=1000
> > reRankQuery=$myquery}&myquery=blah
> >
> >
> > Joel Bernstein
> > Search Engineer at Heliosearch
> >
> >
> > On Thu, Sep 4, 2014 at 4:25 PM, Ravi Solr <ravisolr@gmail.com <mailto:ravisolr@gmail.com>
> wrote:
> >
> > > Can the ReRanking API be used to sort within docs retrieved by a date
> > field
> > > ? Can somebody help me understand how to write such a query ?
> > >
> > > Thanks
> > >
> > > Ravi Kiran Bhaskar
> > >
> >
> 


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