【问题标题】:Fulltext search similar全文搜索类似
【发布时间】:2012-05-27 13:43:24
【问题描述】:

假设我想查询字符串“这是第一个标题”,我希望它返回几乎类似的字符串,如下所示。

this is first title
this is second title
this is third title

QueryOptions 可以查询“几乎相似”的字符串吗?

【问题讨论】:

    标签: java google-app-engine full-text-search search-engine


    【解决方案1】:

    您可以搜索"this is" title(将“this is”括在双引号中将其视为一个短语),这应该适用于您的特定用例。 如果您在特定字段中搜索,例如“摘要”,您可以指定该字段以缩小搜索范围,例如:summary:"this is" summary:title

    另请参阅此问题的答案:GAE Full Text Search API phrase matching。 您可以使用“~”运算符重写查询以包含复数,这是搜索相似文本的一种方式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-17
      相关资源
      最近更新 更多