0
I am trying to filter my Elasticsearch result where the results should be returned where they are 80% compatible with the searched text.
When I use only one column the rule of minimum_should_match
works perfectly:
{
"size":30,
"from":930,
"query":{
"filtered":{
"query":{
"query_string":{
"default_field":"campo1",
"query":"portugues",
"minimum_should_match":"80%"
}
}
}
}
}
When I search for more than one field no matter what value I put in minimum_should_match
that the same amount of results is always returned:
{
"size":30,
"from":123420,
"query":{
"filtered":{
"query":{
"query_string":{
"default_operator":"or",
"query":"portugues",
"fields":[
"campo1",
"campo2^5",
"campo3"
],
"minimum_should_match":"80%"
}
}
}
}
}
From what I’m checking I probably have to insert a minimum_should_match
for each column or something.