Only one of your indexed items match cat=XXX
. The fact that you have added it twice on one of them doesn't make a difference.
In your request to Solr you chose to facet on the field cat
, so the response will include a lst
element faceting on the cat
field.
Every int
element within that list contains acount of how many items match the different categories. So all the categories XXX, electronics, monitor, search and software match one item each.
If you would for example add <field name="cat">XXX</field>
to the second item, you would get <int name="XXX">2</int>
in the response.