在solr中查询具有特殊字符的字段

时间:2013-03-22 21:01:17

标签: solr special-characters

我们索引商家名称并对其进行搜索。我现在需要搜索或提取有&的商家名称列表。在它的名字。也类似这样的符号。

使用的查询:http:localhost:9080 / solr / core1 / select?q = busname:* \ - *& wt = xml

Schema.xml:“field name =”busname“type =”text“indexed =”true“stored =”true“multiValued =”false“”

我认为只是给予逃脱角色会得到预期的结果。

0 个答案:

没有答案
相关问题