The requested URL was not found on this server. 不管你信不信,反正我是没找到

query 查询语句出现问题

Elasticsearch | 作者 sherry | 发布于2015年01月15日 | 阅读数:8426

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
已邀请:

stab - freshman

赞同来自: sherry Rubricate

我又去看了一下,是tie_breaker,少了个r,这个也是粘贴出错么?
如果不是的话,你以后有可以留心在error最后的内容:
nested: QueryParsingException[[hk_test] [match] query does not support [tie_breake]]; }]"

stab - freshman

赞同来自:

"fields"["body","title"] 这行少了个冒号,是粘贴出错么?

sherry - 80IT女

赞同来自:

是的 是粘贴出错

likaiguo

赞同来自:

In your linked documentation it says:

**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以后的版本

要回复问题请先登录注册