V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
qq7588245

如何去处重复查询呢?类似 MySQL 的 distinct

  •  
  •   qq7588245 · Dec 3, 2017 · 6084 views
    This topic created in 3077 days ago, the information mentioned may be changed or developed.

    类似 MySQL 的语句:SELECT DISTINCT title FROM table

    2 replies    2017-12-03 19:56:12 +08:00
    fjkfwz406
        1
    fjkfwz406  
       Dec 3, 2017
    你可以试试聚合查询
    binjjam
        2
    binjjam  
       Dec 3, 2017
    我一般用这个 cardinality,不过这个不是准确值,详见文档
    https://www.elastic.co/guide/cn/elasticsearch/guide/current/cardinality.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5392 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:26 · PVG 17:26 · LAX 02:26 · JFK 05:26
    ♥ Do have faith in what you're doing.