POST /lpm-company-dev/_search
{
“query”:{
“bool” : {
“must” : [
{
“bool” : {
“should” : [
{
“wildcard” : {
“name” : {
“wildcard” : “鸿运”,
“boost” : 1.0
}
}
}
],
“adjust_pure_negative” : true,
“boost” : 1.0
}
}
],
“adjust_pure_negative” : true,
“boost” : 1.0
}
}
}
关键词为“鸿运”可以搜索到数据,但是“鸿运物流”却搜索不到。
mapping分词器设置
“name”: {
“type”: “text”,
“analyzer”: “ik_max_word”,
“search_analyzer”: “ik_smart”
}
分析
ik_max_word
解析结果:
POST /lpm-company-dev/_analyze<