-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
type: enhancementA general enhancementA general enhancement
Milestone
Description
Unless it's specified, the search type is set to dfs_query_then_fetch
:
Line 55 in d80d920
protected SearchType searchType = SearchType.DFS_QUERY_THEN_FETCH; |
The default search type in Elasticsearch itself is query_then_fetch
. Compared to this Elasticsearch default, dfs_query_then_fetch
performs an extra round trip to the nodes before starting the main search to gather term frequency information. In general, the dfs_query_then_fetch
type is only used in special situations where exact text scoring is important.
To avoid adding the extra roundtrip, AbstractQuery
could fall back to the Elasticsearch default instead of setting dfs_query_then_fetch
.
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement