You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Paden <ru...@gmail.com> on 2015/07/01 19:30:40 UTC
Using Facets to Limit the Scope of a Search
Hello,
I feel like this is a really basic question but I'm struggling to find the
answer. I'm trying to figure out what the HTTP request is would limit the
scope of a search based on the facet. Say I performed a query and the facet
field request returns the top ten authors of the facet count and say the top
one was an author that had 31 documents that matched the query and I wanted
to further limit the search based on that number.
How would I perform a http request that would say return the documents of
previous query but ONLY the documents where author = (author with 31
documents)
--
View this message in context: http://lucene.472066.n3.nabble.com/Using-Facets-to-Limit-the-Scope-of-a-Search-tp4215304.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Using Facets to Limit the Scope of a Search
Posted by Toke Eskildsen <te...@statsbiblioteket.dk>.
Paden <ru...@gmail.com> wrote:
> How would I perform a http request that would say return the documents of
> previous query but ONLY the documents where author = (author with 31
> documents)
Simplest thing is to add it as a filter query:
q=fairy+tales&fq=author:"H. C. Andersen"
- Toke Eskildsen