curl -XPOST 'localhost:9200/hk_test/_search?pretty=true' -d '{
"query":{
"multi_match":{"query":"test",
"type":"best_fields",
"fields"["body","title"],
"tie_breake":0.3}
}
}'
报错:{
"error" : "SearchPhaseExecutionException[Failed to execute phase [query], all 1][0]: from[-1],size[-1]: Parse Failure [Failed to parse source
"query":{
"multi_match":{"query":"test",
"type":"best_fields",
"fields"["body","title"],
"tie_breake":0.3}
}
}'
报错:{
"error" : "SearchPhaseExecutionException[Failed to execute phase [query], all 1][0]: from[-1],size[-1]: Parse Failure [Failed to parse source
4 个回复
stab - freshman
赞同来自: sherry 、Rubricate
如果不是的话,你以后有可以留心在error最后的内容:
nested: QueryParsingException[[hk_test] [match] query does not support [tie_breake]]; }]"
stab - freshman
赞同来自:
sherry - 80IT女
赞同来自:
likaiguo
赞同来自:
**types of multi_match query
Note Added in 1.1.0.**
Also mentioned in http://www.elasticsearch.org/b ... ased/
You will need to download the newer version.
需要使用1.1以后的版本