Please enable JavaScript.
Coggle requires JavaScript to display documents.
COMBINING QUERIES (filtered ("filtered": { "query": {}…
COMBINING QUERIES
filtered
"filtered": { "query": {}, "filter": {} }
In general, "filter" query is executed after query
But in case of "filter" inside "filtered", "filter" is executed first to improve the speed of searching.
-
dis_max
-
-
-
BUT
-
"tire_breaker" is IN [0,1]
Besides the most relevance score fields, other fields' relevances are also taken into accounts.
Practically, chosing "tire_breaker" in [0.1, 0.4]
bool query
-
Accept only
-
-
should
-
-
-
if no "must", at LEAST one "should" clause must be matched
if a "must" exists, no "should" matching is required
-
RELEVANCE
Intro
-
Many methods but mainly TF-IDF
for full-text search. Even
structured search would change
the relevance values
-
-