lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: making an in-order query
Date Thu, 08 Mar 2007 03:01:41 GMT
On 3/7/07, Brian Whitman <> wrote:
> I have a non-Solr API that comes back with an ordered list of Solr
> unique IDs -- it's SQL sort on user votes for Solr docs.
> I would like to quickly retrieve those Solr documents in the order
> specified by the other API and run it through the xslt response writer.
> What sort of query can I do here?
> id:A id:B id:C id:D
> *usually* works, but I have seen D appear first in the results for
> certain queries.
> Is there a query I can do or a better way to accomplish this?

It's a bit of a hack, but you could use boosts to order the docs:

id:A^4 id:B^3 id:C^2 id:D^1


View raw message