【发布时间】:2015-06-07 23:58:19
【问题描述】:
看了这个问题后:ElasticSearch default scoring mechanism,我想使用“dfs_query_then_fetch”而不是默认的“query_then_fetch”搜索类型。但是,我使用的是 elasticsearch-js 客户端,我不知道如何指定它。有人知道吗?
【问题讨论】:
看了这个问题后:ElasticSearch default scoring mechanism,我想使用“dfs_query_then_fetch”而不是默认的“query_then_fetch”搜索类型。但是,我使用的是 elasticsearch-js 客户端,我不知道如何指定它。有人知道吗?
【问题讨论】:
根据documentation,您应该能够通过指定
searchType 选项来实现此目的。
【讨论】: