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.


Reply via email to