I am new in elasticsearch,
and have field:tags["tag1","tag2","tag3","color2","color1"] in elasticsearch.
I am about to match my array of tags with field tags in db ,so that 50% of tags minimum is matching.
{
"query": {
"bool": {
"must": [
{
"terms": {
"tags": [
"tag1",
"tag2",
"tag3"
],
"boost": 1.0
}
}
],
"adjust_pure_negative": true,
"minimum_should_match": "50%",
"boost": 1.0
}
}
}
it is not working