我正在寻找合适的弹性搜索查询,
SELECT col1,col2 FROM myTable WHERE col1="value1" AND col2 = "value2"
例如:这是我的映射,
{
"mapping": {
"doc": {
"properties": {
"book": {
"properties": {
"name": {
"type": "text"
},
"price": {
"type": "integer"
},
"booktype": {
"properties": {
"booktype": {
"type": "text"
}
}
}
}
}
}
}
}
}
我正在尝试编写一个查询,它会给我price并且name有booktype=Fiction