【发布时间】:2020-05-08 13:39:40
【问题描述】:
luncene查询语法中的通配符搜索,带*的后缀是单词。我需要像eg1一样开头:搜索:“关联*”应该给我
[{
"field1": "Associated for"
}, {
"field1": "Associates for"
}, {
"field1": "Associates word"
}]
但它会返回
[{
"field1": "you Associated for"
}, {
"field1": "Associates for"
}, {
"field1": "word Associates with"
}]
谁能帮我找到解决办法。
eg2 : "search":"word associate*"
预期结果
[{
"field1": "word Associated"
}, {
"field1": "word Associated are"
}, {
"field1": "word Associates with"
}]
如果我使用关键字分析器,它会为我提供 eg1 预期的结果,但对于 eg: ("search":"associates for*") search 给了我
[{
"field1": "forest are located"
}, {
"field1": "fort are build with"
}, {
"field1": "fore are"
}]
预期结果
[{
"field1": "Associates for"
}, {
"field1": "Associates for abc"
}, {
"field1": "Associates for xyz"
}]
【问题讨论】:
标签: search full-text-search wildcard azure-cognitive-search azure-search-.net-sdk