ktb
January 10, 2019, 1:10pm
1
Hy,
currently i create a faceted search for our Onlineshop.
I create Filters with the aggregation. It works fine.
But how can i make a filter from a field, where multiple values separated by special characters.
Example:
"speed": "slow#mid#fast"
Should look like
Or isnt it a good idea, to use that?
Greetings
ktb
ktb
January 11, 2019, 7:59am
2
I solved it.
in my mapping i've added this
"speed": {
"type": "text",
"fields":{
"raw": {
"type" : "keyword"
}
}
},
and in the search query....
"aggs":{
"locationFilter":{
"terms": {
"field": "speed.raw"
}
}
}
Easier then i thought.
system
(system)
Closed
February 8, 2019, 7:59am
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.