Hi, I'm looking for help :) This is maybe trivial but I can't find the good solution.
I have some documents and those documents have two boolean properties, basically thumbs up and thumbs down to show that the administrator approve or not those documents. I try to boost a document if it is "thumbsup" or demote the document if it is thumbsdown. It's not a filter, the document could be retrieved, it's just more or less relevant. I tried with two should clauses in the global request : { "bool" : { "should" : [ { "term" : { "champ1" : "valeur1" } }, { "term" : { "champ2" : "valeur2" } }, { "term" : { "thumbsup" : true } }, { "term" : { "thumbsdown" : false} } ] } } But I get some irrelevant documents because they match the last conditions. What would be the best method for this use case ? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ba3964f0-fbc8-4e0c-be3f-c38af8221410%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.