ss098

ElasticSearch 如何精确匹配字符串

  •  
  •   ss098 · Jul 6, 2015 · 11298 views
    This topic created in 4010 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
        2
    lins05  
       Jul 6, 2015   ❤️ 1
    必须在 mapping 里指定 `"index": "not_analyzed"`
    levon
        3
    levon  
       Jul 6, 2015   ❤️ 1
    Term 中文有问题,英文应该是好的
    pixstone
        4
    pixstone  
       Jul 7, 2015 via iPhone   ❤️ 1
    中文也可以的 用 mm值限定。must match
    hh4062703
        5
    hh4062703  
       Jul 7, 2015   ❤️ 1
    使用 phase query
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3007 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 13:39 · PVG 21:39 · LAX 06:39 · JFK 09:39
    ♥ Do have faith in what you're doing.