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 Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01