here is the product format i have
<doc>
<str name="productname">ipad</str>
<str name="sku">1524856</str>
<str name="store">apple.com</str>
</doc>
<doc>
<str name="productname">ipad</str>
<str name="sku">1524856</str>
<str name="store">apple.com</str>
</doc>
<doc>
<str name="productname">ipad</str>
<str name="sku">1524856</str>
<str name="store">buy.com</str>
</doc>
<doc>
<str name="productname">ipad</str>
<str name="sku">1524856</str>
<str name="store">amazon.com</str>
</doc>
<doc>
<str name="productname">ipad</str>
<str name="sku">1524856</str>
<str name="store">amazon.com</str>
</doc>
<doc>
<str name="productname">ipad</str>
<str name="sku">1524856</str>
<str name="store">ebay.com</str>
</doc>
i have to group it with sku so i write it as
http://**********/?q=ipad&wt=xml&group=true&group.field=upc&group.ngroups=true
and in my output is
<result name="doclist" numFound="6" start="0">
<doc>
<str name="productname">ipad</str>
<str name="sku">1524856</str>
<str name="store">apple.com</str>
</doc>
but i want to group with store name too. if more than one product in a store
with same sku it should take only one store
my o/p should be like this(numfound=4 instead of 6)
<result name="doclist" numFound="4" start="0">
<doc>
<str name="productname">ipad</str>
<str name="sku">1524856</str>
<str name="store">apple.com</str>
</doc>
--
View this message in context:
http://lucene.472066.n3.nabble.com/solr-group-count-tp4052891.html
Sent from the Lucene - General mailing list archive at Nabble.com.