Search engine Lucene vs Database search(搜索引擎 Lucene 与数据库搜索)
问题描述
我正在使用 MySQL 数据库,并且一直在使用数据库驱动的搜索.数据库引擎和Lucene搜索引擎有什么优缺点?我想就何时何地使用它们提出建议?
I am using a MySQL database and have been using database driven search. Any advantages and disadvantages of database engines and Lucene search engine? I would like to have suggestions about when and where to use them?
推荐答案
我建议你阅读全文搜索引擎与 DBMS.单线是:如果您的大部分用例是全文搜索,请使用 Lucene.如果您的大部分用例是连接和其他关系操作,请使用数据库.对于更复杂的用例,您可以使用混合解决方案.
I suggest you read Full Text Search Engines vs. DBMS. A one-liner would be: If the bulk of your use case is full text search, use Lucene. If the bulk of your use case is joins and other relational operations, use a database. You may use a hybrid solution for a more complicated use case.
这篇关于搜索引擎 Lucene 与数据库搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:搜索引擎 Lucene 与数据库搜索


基础教程推荐
- 如何在 SQL 中将 Float 转换为 Varchar 2021-01-01
- 表 './mysql/proc' 被标记为崩溃,应该修复 2022-01-01
- 什么是 orradiag_<user>文件夹? 2022-01-01
- 如何根据该 XML 中的值更新 SQL 中的 XML 2021-01-01
- 在 MySQL 中:如何将表名作为存储过程和/或函数参数传递? 2021-01-01
- 二进制文件到 SQL 数据库 Apache Camel 2021-01-01
- oracle区分大小写的原因? 2021-01-01
- MySQL 中的类型:BigInt(20) 与 Int(20) 2021-01-01
- mysql选择动态行值作为列名,另一列作为值 2021-01-01
- 在多列上分布任意行 2021-01-01