Options -

   1. Can you pre-compute your "business logic" score at index time? If yes,
   then this value can be stored in some field and you can use function queries
   to use this data plus the score to return a value which you can sort upon.
   2. Take a look at -
   
http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/search/Similarity.html.
   Custom similarity implementations can be hooked up into Solr easily.

Cheers
Avlesh

On Tue, Oct 13, 2009 at 9:05 PM, William Pierce <evalsi...@hotmail.com>wrote:

> Folks:
>
> During query time, I want to dynamically compute a document score as
> follows:
>
>  a) Take the SOLR score for the document -- call it S.
>  b) Lookup the "business logic" score for this document.  Call it L.
>  c) Compute a new score T = func(S, L)
>  d) Return the documents sorted by T.
>
> I have looked at function queries but in my limited/quick review of it,  I
> could not see a quick way of doing this.
>
> Is this possible?
>
> Thanks,
>
> - Bill
>
>
>

Reply via email to