What does 「adjust_pure_negative」 flag do?

你能夠忽略它... 只看懂第一句話。哈哈ide

You can ignore it. It "does the right thing" when calling Lucene when all clauses are "must_not" clauses (no shoulds or musts). Ordinarily Lucene expects some positive clauses so would return nothing. Elasticsearch adjusts for this case by adding a must match_all type clause which means Lucene would then provide results, filtered by the must_nots. True is the default setting and anything else seems non-sensical.this

elastic term member description

adjust_pure_negative 地址blog

相關文章
相關標籤/搜索