【问题标题】:search a analyzed field through the stored original value in elasticsearch通过elasticsearch中存储的原始值搜索分析的字段
【发布时间】:2014-06-11 06:37:05
【问题描述】:

在弹性搜索中,我有一个被分析的字段,并且我还存储了原始值。我想用存储值而不是分析值搜索字段。

有什么办法吗?

注意:我无法创建字段not_analyzed,因为我也在搜索分析值。

【问题讨论】:

    标签: lucene elasticsearch


    【解决方案1】:

    查看multi fields 类型,这将允许两个存储字段,analyzed 用于全文搜索,not_analyzed 用于精确匹配。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-07
      • 2021-12-13
      • 2018-08-08
      • 2018-11-21
      • 1970-01-01
      • 2019-11-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多