Im trying to do a search for "dog chew" in the invention-title field in my PatentGrants type.
query url: POST http://localhost:9200/patents/patentGrants/_search
query body:
{
"query": {
"match_all": {
"invention-title": "dog chew"
}
}
}
Below is a picture of the data in my patents index and below that is a picture of my query and the error message.
答案 0 :(得分:0)
试试这个:
{
"query": {
"match": {
"inventionTitle": "dog chew"
}
}
}
inventionTitle
而不是invention-title
。match
代替match_all
。 match_all
不接受搜索查询。