搜索引擎 Lucene 与数据库搜索

2022-01-15 00:00:00 lucene mysql search-engine

我正在使用 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.

相关文章