1、查询索引字段的映射关系
GET /索引/_mapping
2、查询索引的分词器等设置
GET /索引/_settings
3、根据指定分词器分词
GET /索引/_analyze
{
"analyzer" : "standard",
"text" : "层系"
}
4、term查询
POST /索引/_search
{
"query": {
"term": {
"dbId": "101545"
}
}
}
5、match查询
POST /tb/_search
{
"query": {
"match": {
"dbId": "19841159f25845008fad2512aa91f48b"
}
}
}
6、bool查询
6.1 must组合
GET /tb/_search
{
"query": {
"bool": {
"must": [
{
"terms": {
"dbId": [
287994
]
}
},
{
"match": {
"original": "层"
}
}

最低0.47元/天 解锁文章
852

被折叠的 条评论
为什么被折叠?



