ss098

ElasticSearch 如何精确匹配字符串

  •  
  •   ss098 · Jul 6, 2015 · 13582 views
    This topic created in 4146 days ago, the information mentioned may be changed or developed.

    我试过 Term 跟 multi_match 很多方法,都不能达成效果。

    我希望提交的 Keyword 是等于任意一列的值。

    比如提交 test,那么就在该行中的任意一列等于 test。

    5 replies  •  2015-07-07 13:38:03 +08:00
    lins05
    lins05
    Jul 6, 2015❤️1
    2
    必须在 mapping 里指定 `"index": "not_analyzed"`
    levon
    levon
    Jul 6, 2015❤️1
    3
    Term 中文有问题,英文应该是好的
    pixstone
    pixstone
    Jul 7, 2015 via iPhone❤️1
    4
    中文也可以的 用 mm值限定。must match
    hh4062703
    hh4062703
    Jul 7, 2015❤️1
    5
    使用 phase query
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2530 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 11:52 · PVG 19:52 · LAX 03:52 · JFK 06:52
    ♥ Do have faith in what you're doing.