Hi i am using following two queries but i am not getting the out put as
expected

http://localhost:8080/solr/Testing/select?q=*%3A*&wt=xml&indent=true&facet=true&facet.field=categoryId

for the above query it is showing all the matched results as

category1(Id-900)--10002
category2(Id-800)--5202
category3(Id-700)--1500

http://localhost:8080/solr/Testing/select?q=*:*&wt=xml&indent=true&facet=true&facet.field=categoryId&facet.query=categoryId:900

This has to show only results of categoryId 900 results i.e numfound must be
10002

http://localhost:8080/solr/Testing/select?q=*:*&wt=xml&indent=true&facet=true&facet.field=categoryId&facet.query=categoryId:900&facet.query=categoryId:800

It has to show results of both categories i.e 10002+5202=total 15204
records.

But it showing all the category records


and if i use the fq=categoryId:800&fq=categoryId:900 then it not showing any
results.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Faceting-Query-in-Solr-tp4104881p4105083.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to