Boost on basis of intersection of terms in the two array


(Abhishek Gupta) #1

I am working on a simple search where I would prefer if the categories
belong to a subset. But even if that isn't the case I would still like to
have the results. I am currently using the following query

"terms" : {
"tags" : [ "sing", "music" ,"relaxing"],
"minimum_should_match" : 0
}

despite having minimum_should_match as 0, the results which doesn't have
these tags are not being shown. "tags" in this case is an array of
words/tags for the entity that I am searching for.

Regards
Abhishek

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c0586d80-1b14-4eb0-a126-8f7cc2c958d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2