The users will be able to choose the order of sort based on distance, data and 
time, relevancy. 

More than likely, my first initial version will do range limits on distance, 
data and time. Then relevancy will sort, send it to browser.

After that, the user will sort it in the browser as desired.

I can't yet get into the application, but early next year I can. In fact, I 
most certainly will :-)

Dennis Gearon

Signature Warning
----------------
EARTH has a Right To Life,
  otherwise we all die.

Read 'Hot, Flat, and Crowded'
Laugh at http://www.yert.com/film.php


--- On Fri, 9/17/10, Erick Erickson <erickerick...@gmail.com> wrote:

> From: Erick Erickson <erickerick...@gmail.com>
> Subject: Re: Can i do relavence and sorting together?
> To: solr-user@lucene.apache.org
> Date: Friday, September 17, 2010, 10:09 AM
> Sure, you can specify multiple sort
> fields. If the first sort field results
> in a tie, then
> the second is used to resolve. If both first and second
> match, then the
> third is
> used to break the tie.
> 
> Note that relevancy is tricky to include in the chain
> because it's
> infrequent to have two
> docs with exactly the same relevancy scores, so wherever
> relevancy is in the
> chain,
> sort criteria below that probably will have very little
> effect.
> 
> You could probably write some custom code to munge the
> relevancy scores into
> buckets,
> say quintiles, but that'd be somewhat tricky.
> 
> What is the use case for your sorting?
> 
> Best
> Erick
> 
> On Fri, Sep 17, 2010 at 1:00 PM, Dennis Gearon <gear...@sbcglobal.net>wrote:
> 
> > Well ..
> > > because the date sort overrides all the scoring,
> by
> > > definition.
> >
> > THAT'S not good for what I want, LOL!
> >
> > Is there any way to chain things like distance, date,
> relevancy, an integer
> > field to force sort oder, like when using SQL 'SORT
> BY', the order of sort
> > is the order of listing?
> >
> >
> > Dennis Gearon
> >
> > Signature Warning
> > ----------------
> > EARTH has a Right To Life,
> >  otherwise we all die.
> >
> > Read 'Hot, Flat, and Crowded'
> > Laugh at http://www.yert.com/film.php
> >
> >
> > --- On Fri, 9/17/10, Erick Erickson <erickerick...@gmail.com>
> wrote:
> >
> > > From: Erick Erickson <erickerick...@gmail.com>
> > > Subject: Re: Can i do relavence and sorting
> together?
> > > To: solr-user@lucene.apache.org
> > > Date: Friday, September 17, 2010, 6:10 AM
> > > What is it about the standard
> > > relevance ranking that doesn't suit your
> > > needs?
> > >
> > > And note that if you sort by your date field,
> relevance
> > > doesn't matter at
> > > all
> > > because the date sort overrides all the scoring,
> by
> > > definition.
> > >
> > > Best
> > > Erick
> > >
> > > On Fri, Sep 17, 2010 at 6:57 AM, Pawan Darira
> <pawan.dar...@gmail.com
> > >wrote:
> > >
> > > > Hi
> > > >
> > > > My index have fields named ad_title,
> ad_description
> > > & ad_post_date. Let's
> > > > suppose a user searches for more than one
> keyword,
> > > then i want the
> > > > documents
> > > > with maximum occurence of all the keywords
> together
> > > should come on top. The
> > > > more closer the keywords in ad_title &
> > > ad_description should be given top
> > > > priority.
> > > >
> > > > Also, i want that these results should be
> sorted on
> > > ad_post_date.
> > > >
> > > > Please suggest!!!
> > > >
> > > > --
> > > > Thanks,
> > > > Pawan Darira
> > > >
> > >
> >
>

Reply via email to