boolean - ElasticSearch bool should_not filter -
i'm newbie in elasticsearch, querion is:
there 3 sections in bool filter:
must of these clauses must match. equivalent of and. must_not of these clauses must not match. equivalent of not. should @ least 1 of these clauses must match. equivalent of or.
how preform should_not query?
thanks in advance :)
that depends on how wishing "should_not" function.
since should
equivalent boolean or (i.e. return documents or b or c true), 1 way think of "should_not" equivalent not (a or b or c). in boolean logic, same not , not b , not c. in case, "should_not" behavior accomplished adding clauses must_not
section of bool filter.
Comments
Post a Comment