Actually there is a problem with my data..found my error. Thanks
On Wed, Mar 9, 2016 at 9:24 AM, Jay Potharaju <jspothar...@gmail.com> wrote: > Hi, > I am using solr 5.4 and testing the multi select JSON facet feature. > When I select 1 value the results are the same as number of counts for the > facet. But when I select more than 1 facet the number of results returned > are not correct. > > *Single Facet selected* > fq: [ > "{!tag=FIRSTLETTER}facet_firstLetter_lastname:(Q)" > ], > json.facet.name: "{type:terms,field:facet_firstLetter_lastname, > sort:{count:desc}}" > response: { > numFound: 540, > start: 0, > docs: [ ] > }, > facets: { > count: 5246, > name: { > buckets: [ > { > val: "Q", > count: 540 > }, > { > val: "X", > count: 1302 > }, > { > val: "J", > count: 4718 > }, > { > val: "Z", > count: 7242 > }, > { > val: "V", > count: 9089 > }, > { > val: "F", > count: 10053 > }, > { > val: "P", > count: 14966 > }, > { > val: "Y", > count: 18520 > }, > { > val: "W", > count: 20781 > }, > { > val: "G", > count: 21935 > } > ] > } > } > > *Multi-select facet* > fq: [ > "{!tag=FIRSTLETTER}facet_firstLetter_lastname:(Q J)" > ], > > response: { > numFound: 5246, > start: 0, > docs: [ ] > } > > I was expecting the response count to be 540 + 4718 = 5258 but the > response is 5246. > > Can someone comment on regarding this? > > -- > Thanks > Jay > > -- Thanks Jay Potharaju