【问题标题】:How can I index and search on the percent (%) character in sphinx如何索引和搜索 sphinx 中的百分比 (%) 字符
【发布时间】:2011-12-30 11:30:26
【问题描述】:

我们的索引中充满了与它们相关联的数据。

事实证明,度 (°) 和百分比 (%) 等单位难以索引和搜索。

我们使用的是 ultrasphinx 和 sphinx 0.9.9,但 Riddle/ThinkingSphinx 似乎无法处理对 % 符号的搜索。

我们允许设置一个单位标签和单位符号,我们从中构造一个单位字符串,并从中建立索引。

可以使用诸如“Power (W)”之类的查询来找到单位字符串,例如

@units "W"

【问题讨论】:

    标签: ruby full-text-search sphinx thinking-sphinx ultrasphinx


    【解决方案1】:

    尝试将其添加到您的字符集表中,例如:https://stackoverflow.com/a/8640248/960702

    【讨论】:

      猜你喜欢
      • 2021-12-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-27
      相关资源
      最近更新 更多