V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dbfox
V2EX  ›  程序员

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

  •  1
     
  •   dbfox · 2016-01-21 17:13:06 +08:00 · 3082 次点击
    这是一个创建于 3039 天前的主题,其中的信息可能已经有所发展或是发生改变。
    数据库全文索引和 Lucene 索引有何利弊?

    喜欢简单省事的做法
    8 条回复    2016-01-22 13:03:59 +08:00
    inmyfree
        1
    inmyfree  
       2016-01-21 17:46:14 +08:00
    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  
       2016-01-21 17:47:15 +08:00 via Android
    Solr
    fredcc
        3
    fredcc  
       2016-01-21 18:12:03 +08:00 via Android
    elasticsearch
    CheungKe
        4
    CheungKe  
       2016-01-21 18:23:14 +08:00
    直接 es , mysql 好像不自带全文检索功能
    qgy18
        5
    qgy18  
       2016-01-21 20:44:32 +08:00
    dbfox
        6
    dbfox  
    OP
       2016-01-22 09:20:35 +08:00
    @qgy18 看起来很棒啊
    lyz1990
        7
    lyz1990  
       2016-01-22 12:35:23 +08:00
    ElasticSerach + ik 中文分词,业务数据如果在 mysql 又不想动的话,可以用 go-elasticsearch 同步进去
    ljdawn
        8
    ljdawn  
       2016-01-22 13:03:59 +08:00
    mysql Myisam 可以用全文索引..但是还是建议用 es
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1423 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:34 · PVG 01:34 · LAX 10:34 · JFK 13:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.