【发布时间】:2019-03-27 06:38:59
【问题描述】:
我正在寻找合适的弹性搜索查询,
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
【问题讨论】:
标签: django elasticsearch kibana elasticsearch-dsl elasticsearch-query