lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthik Ramachandran <kramachand...@commvault.com>
Subject JSON facet bucket list not correct with sharded query
Date Wed, 05 Apr 2017 00:32:03 GMT
We are using JSON facet to list files that are duplicate(mincount: 2) in pages, after 2-3 page
we don't any result even though there are more results.

Schema:
  <field name="filename" type="string" indexed="true" docValues="true"/>
  <field name="id" type="string" docValues="true" indexed="true" required="true"/>
  <field name="size" type="long" indexed="true" docValues="true"/>

Query:
http://localhost:8983/solr/fileduplicate01/select/?wt=json&q=*:*&start=0&rows=0&shards=localhost:8983/solr/fileduplicate01,localhost:8983/solr/fileduplicate02&json.facet={
"duplicates":{"type":"terms","field":"filename","limit":15,"offset":0,"mincount":2,"numBuckets":true,"sort":"sum
desc","facet": {"sum":"sum(size)"}}}

Create 2 cores named fileduplicate01 and fileduplicate01 with the same schema and run the
attached java to populate the data and run the query.

Any help is appreciated.


With Thanks & Regards
Karthik Ramachandran


***************************Legal Disclaimer***************************
"This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you."
**********************************************************************

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