此查询 -
curl -XGET http://localhost:9200/haystack/modelresult/_search?q=post_text:#test
无法执行错误
SearchPhaseExecutionException[Failed to execute phase
状态为400
答案 0 :(得分:1)
试试这个:
curl -XPOST "http://localhost:9200/haystack/modelresult/_search" -d'
{
"query": {
"match": {
"post_text": "#test"
}
}
}'
或者这个:
curl -XPOST "http://localhost:9200/haystack/modelresult/_search" -d'
{
"query": {
"term": {
"post_text": "#test"
}
}
}'