如何生成这样的查询?
select * from topic where field1 = "abc" and field2 = "xyz"
我尝试了以下方法,但无法获得正确的语法:
curl -X POST "localhost:9200/topic/_search" -H 'Content-Type: application/json' -d'
{
"query": {
"terms" : {
"field1": "abc",
"field2": "xyz"
}
}
}
'