lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toke Eskildsen ...@statsbiblioteket.dk>
Subject Re: Solr seems to reserve facet.limit results
Date Tue, 06 Dec 2016 08:33:59 GMT
On Mon, 2016-12-05 at 17:47 -0700, Chris Hostetter wrote:
> : One simple solution, in my case would be, now just thinking of it,
> : run the query with no facets and no rows, get the numFound, and set
> : that as facet.limit for the actual query.
> 
> ...that assumes that the number of facet constraints returned is
> limited by the total number of documents matching the query -- in
> general there is no such garuntee because of multivalued fields (or
> faceting on tokenized fields), so this type of approach isn't a good
> idea as a generalized solution

For simple String/Text faceting, which Markus seems to be using, the
number of repetitions of a term in a document does not matter: Each
term only counts at most once per document.


If there are any common case deviations from this, the preface to the
faceting documentation should be updated: "...along with numerical
counts of how many matching documents were found were each term".
https://cwiki.apache.org/confluence/display/solr/Faceting

- Toke Eskildsen, State and University Library, Denmark
Mime
View raw message