• 请不要在回答技术问题时复制粘贴 AI 生成的内容
aidevs
V2EX  ›  程序员

全文索引:使用数据库的全文索引功能?还是 Lucene 之类?

  •  1
     
  •   aidevs · Jan 21, 2016 · 3593 views
    This topic created in 3782 days ago, the information mentioned may be changed or developed.
    数据库全文索引和 Lucene 索引有何利弊?

    喜欢简单省事的做法
    8 replies    2016-01-22 13:03:59 +08:00
    inmyfree
        1
    inmyfree  
       Jan 21, 2016
    select * from table_a where xx like "%xxxx%" or xx1 like "%xxx%"
    select * from table_b where xx2 like "%xxxx%" or xx3 like "%xxx%"
    .....
    .
    .
    .
    逃....
    dong3580
        2
    dong3580  
       Jan 21, 2016 via Android
    Solr
    fredcc
        3
    fredcc  
       Jan 21, 2016 via Android
    elasticsearch
    CheungKe
        4
    CheungKe  
       Jan 21, 2016
    直接 es , mysql 好像不自带全文检索功能
    qgy18
        5
    qgy18  
       Jan 21, 2016
    aidevs
        6
    aidevs  
    OP
       Jan 22, 2016
    @qgy18 看起来很棒啊
    lyz1990
        7
    lyz1990  
       Jan 22, 2016
    ElasticSerach + ik 中文分词,业务数据如果在 mysql 又不想动的话,可以用 go-elasticsearch 同步进去
    ljdawn
        8
    ljdawn  
       Jan 22, 2016
    mysql Myisam 可以用全文索引..但是还是建议用 es
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1402 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 16:53 · PVG 00:53 · LAX 09:53 · JFK 12:53
    ♥ Do have faith in what you're doing.