【发布时间】:2016-05-17 11:02:29
【问题描述】:
我一直在尝试通过 Java Web 服务在 Solr 中进行模糊搜索,但在搜索查询中添加 ~ 不起作用。
我的非模糊查询看起来像:
((param_name : "gold") // Works return items with "gold" in it
为了让它变得模糊,我尝试了多种方法,但似乎没有任何效果
((param_name : "glod~") // Adding inside quotes
((param_name : "glod"~) // Adding outside quotes
((param_name : "glod"\~)) // Escaping
真正有效的唯一方法是根本不添加引号,但我必须添加引号才能使特殊字符等起作用。
((param_name : glod~)) // works, returns matching results
有人知道吗?
【问题讨论】: