lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alok Bhandari <alokob...@gmail.com>
Subject Solr cloud facet query returning incorrect results
Date Mon, 21 Dec 2020 09:31:45 GMT
Hello All ,

we are using Solr6.2 , in schema that we use we have an integer field. For
a given query we want to know how many documents have duplicate value for
the field , for an example how many documents have same doc_id=10.

So to find this information we fire a query to solr-cloud with following
parameters

"q":"organization:abc",
      "facet.limit":"10",
      "facet.field":"doc_id",
      "indent":"on",
      "fl":"archive_id",
      "facet.mincount":"2",
    "facet":"true",


But in response we get that there are no documents having duplicate
doc_id as in facet query response we are not getting any facet_counts
, but if I change the query to "q":"organization:abc AND doc_id:10"
then in response I can see that there are 3 docs with doc_id=10.

This behavior seems contrary to how facets behave , so wanted to know
if there is any possible reason for this type of behavior.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message