Skip to content

中文查询无结果 #781

@jgq2008303393

Description

@jgq2008303393

ES版本:5.6.4

查询语句:
GET _sql?sql=select id,name from products_index where name=matchQuery('长裤') order by _score desc limit 2

explain结果如下:
{
"from" : 0,
"size" : 2,
"query" : {
"bool" : {
"must" : [
{
"match" : {
"name" : {
"query" : "��",
"operator" : "OR",
"prefix_length" : 0,
"max_expansions" : 50,
"fuzzy_transpositions" : true,
"lenient" : false,
"zero_terms_query" : "NONE",
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"_source" : {
"includes" : [
"id",
"name"
],
"excludes" : [ ]
},
"sort" : [
{
"_score" : {
"order" : "desc"
}
}
]
}

初步怀疑编码处理有问题,请教下社区大神,帮忙看看这个是什么问题?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions