Answer the question
In order to leave comments, you need to log in
Product attribute aggregation with Elasticsearch?
Friends, hello!
Having a similar problem as here:
stackoverflow.com/questions/23627105/how-to-aggreg...
I have
an EAV model in the database. I'm doing data mapping on Elasticsearch. My situation is the same as in the above example.
The data is taken from the example above.
POST myindex/product/1
{
"name": "Shirt 1",
"manufacturer": "Adidas",
"options":[
{
"id": 1,
"name": "color",
"values" : [
{
"id": 1,
"name": "blue"
} ,
{
"id": 2,
"name": "green"
}
]
},
{
"id": 2,
"name": "Size",
"values" : [
{
"id": 5,
"name": "M"
}
]
}
],
"price":100
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question