Re: Relevancy and date sorting in same search?

2009-03-17 Thread Chris Hostetter

: I'm trying to think of a way to use both relevancy and date sorting in
: the same search. If documents are recent (say published within the last
: 2 years), I want to use all of the boost functions, BQ parameters, and
: normal Lucene scoring functions, but for documents older than two years,
: I don't want any of those scores to apply - only a sort by date.

Yonik recently commited some code that makes it possible to express a 
function query string that refers to an arbitrary param name which is 
evaluated as a query and the scores for each document are used 
as a ValueSource input for the function.  I imagine you could combine 
this with a custom function that returns the value from one ValueSource if 
it's low enough (the date field) otherwise it returns the value from an 
alternate ValueSource (the query)


-Hoss



Relevancy and date sorting in same search?

2009-03-08 Thread Dean Missikowski (Consultant), CLSA
Hi,

 

I'm trying to think of a way to use both relevancy and date sorting in
the same search. If documents are recent (say published within the last
2 years), I want to use all of the boost functions, BQ parameters, and
normal Lucene scoring functions, but for documents older than two years,
I don't want any of those scores to apply - only a sort by date.

 

My first thought was to perform two separate searches and merge them
together in the controller/UI (not looking forward to managing the
pagination issues). I'm wondering if I could maybe achieve a similar
effect in a single search with maybe a custom Similarity class? 

 

Any ideas much appreciated.


CLSA CLEAN  GREEN: Please consider our environment before printing this email.
The content of this communication is subject to CLSA Legal and Regulatory 
Notices. 
These can be viewed at https://www.clsa.com/disclaimer.html or sent to you upon 
request.