Hi,
I'm programming my own faceted navigation for my webshop. I'm almost there
but now i have a strange output on my facets. I will explain with an
example.
This is my simplified query. This query give me the correct product hits,
but my *Color* facet gives 0 terms instead of 19. The *Manufacturer* facet
works just fine. When I remove the part in *bold* the facet is working
correctly. Is there anyone who know what the problem could be?
{
"from": 0,
"size": 60,
"sort": {
"oldPrice": "asc",
"createdOnUtc": "desc"
},
"facets": {
"Manufacturers": {
"terms": {
"field": "manufacturers.name",
"size": 500
}
},
"Color": {
"global": true,
"nested": "specificationAttributes.filterAttributeOptions",
"terms": {
"field": "specificationAttributes.filterAttributeOptions.name",
"size": 500
},
"facet_filter": {
"bool": {
"must": [
{
"term": {
"specificationAttributes.filterAttributeOptions.filterAttributeId": 1
}
}*,*
* {*
* "terms": {*
* "manufacturerIds": [*
* "33"*
* ],*
* "execution": "or"*
* }*
* }*
]
}
}
}
},
"query": {
"bool": {
"must": [
{
"term": {
"published": {
"value": true
}
}
},
{
"term": {
"deleted": {
"value": false
}
}
},
{
"terms": {
"categoryIds": [
"2",
"57",
"23",
"61",
"25",
"26",
"27",
"62",
"28",
"29",
"30",
"31",
"54",
"33",
"32",
"24"
]
}
}
]
}
},
"filter": {
"terms": {
"manufacturerIds": [
"33"
],
"execution": "or"
}
}
}
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/3b8321de-9703-4c72-9fcf-826b80ad20bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.