lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pete Smith <>
Subject Function query result as a filter query
Date Tue, 22 Sep 2009 14:26:19 GMT

Is it possible to constrain a resultset using a filter query to only
return the top 100 documents for a particular field?

Say I have a field called 'hits' that has the total number of hits for
that item. I want to return only the documents that have the top 100
highest hits.

I want something like this:

fq=ord(hits):[* TO 100]

But that does not appear to work - I don't think I can use a function
query for the source of a query. I want it as a filter query so I can
also use it as a facet query.


View raw message