lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: specifying search depth?
Date Thu, 19 Nov 2009 13:26:53 GMT

On Nov 17, 2009, at 7:33 PM, mike.schultz wrote:

> I want to use the standard QueryComponent to run a query then sort a *limited
> number of the results* by some function query.  So if my query returns
> 10,000 results, I'd like to calculate the function over only the top, say
> 100 of them, and sort that for the ultimate results.  Is this possible?

I don't know of a way to do exactly what you want, but if you only cared about the score from
the function and not the score from the query, you could move your query to be a filter and
have the main query be your function.

Otherwise, you will probably have to write your own SearchComponent to operate on the results.
 Or, I can see adding the capability to the response writer to, as it's streaming out docs,
execute the functions.  That way, you'd avoid having to process the results too many times.


Grant Ingersoll

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) using Solr/Lucene:

View raw message