Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES 与db 本身提供的索引查询有和区别 #2

Closed
FS1360472174 opened this issue May 24, 2017 · 2 comments
Closed

ES 与db 本身提供的索引查询有和区别 #2

FS1360472174 opened this issue May 24, 2017 · 2 comments

Comments

@FS1360472174
Copy link
Owner

FS1360472174 commented May 24, 2017

  1. 区别,为什么需要多一层

  2. 为什么不能不是ES 作为数据存储

  3. 搜索包括模糊查询

@FS1360472174
Copy link
Owner Author

  1. 数据库存储的一般是结构化、半结构化等数据

  2. 数据库索引是对字段的重排序
    但是对于like "%dsaf%" 这样的模糊查询数据库索引是起不了作用的

  3. ES 做的事就是建立一个反向索引机制,将数据关键词抽取,然后进行索引排序

@FS1360472174
Copy link
Owner Author

ES 本身也可以作为NoSQL数据库,schema-free 原因在于

  1. 默认在索引中保存原始数据,并可获取(Lucene 的store功能)

  2. 有translog,不会丢数据

http://jolestar.com/elasticsearch-architecture/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant