Hi Amit, thank you for your answer, but I did know how to do it with two distinct queries: I hoped for some way to do it with a single query :-) (maybe using some advanced functionality with nested queries...)
S ________________________________________ Inizio: Amit Nithian [anith...@gmail.com] Inviato: giovedì 27 settembre 2012 19.18 Fine: solr-user@lucene.apache.org Oggetto: Re: Query filtering I think one way to do this is issue another query and set a bunch of filter queries to restrict "interesting_facet" to just those ten values returned in the first query. fq=interesting_facet:1 OR interesting_facet:2 etc&q=context:<whatever> Does that help? Amit On Thu, Sep 27, 2012 at 6:33 AM, Finotti Simone <tech...@yoox.com> wrote: > Hello, > I'm doing this query to return top 10 facets within a given "context", > specified via the fq parameter. > > http://solr/core/select?fq=(...)&q=*:*&rows=0&facet.field=interesting_facet&facet.limit=10 > > Now, I should search for a term inside the context AND the previously > identified top 10 facet values. > > Is there a way to do this with a single query? > > thank you in advance, > S