【发布时间】:2016-10-05 16:15:09
【问题描述】:
SOLR 中的一个字段,我们称之为Customers_txt,其值如下:
qwe<asd>zxc
我正在尝试这样查询:
Customers_txt:(*qwe<asd>zxc*)
但是查询执行时没有结果。 如果我这样查询它
Customers_txt:(*qwe*)
我得到结果
"Customers_txt": [ "qwe<asd>zcx"]
但有可能我会发现很多不必要的记录,其中包含qwe 作为字符串的一部分。
如果我在没有* 的情况下执行查询,就像Customers_txt:(qwe<asd>zxc)
我得到结果。但即使这是一个子字符串,我也需要找到它,比如说AAAqwe<asd>zxcAAA,所以我需要这些星号。
但我也需要找到其中包含这些特殊符号的字符串(< 和>)。
这也适用于符号[、] 和:
【问题讨论】:
标签: solr lucene lucene.net solrnet