数据格式如下,要求精确的搜索出 tags:"文字" 的记录 :
{
"_index" : "xxx",
"_type" : "xxx",
"_id" : "123",
"_version" : 1,
"_score" : 1,
"_source" : {
"iD" : 123,
"name" : "xxx",
"tags" : [
"文字",
"恋爱",
"冒险"
],
"keywords" : []
}
}
我在搜索的时候 tags:"文字" 的时候,会把下面的数据也检索出来,怎么精准的只搜索出 上面这个记录呢?
{
"_index" : "xxx",
"_type" : "xxx",
"_id" : "124",
"_version" : 1,
"_score" : 1,
"_source" : {
"iD" : 123,
"name" : "xxx",
"tags" : [
"A 文字 A",
"恋爱",
"冒险"
],
"keywords" : []
}
}