简体   繁体   English

如何将MongoDB与Apache Lucene集成?

[英]How can I integrate MongoDB with Apache Lucene?

Is there any way to integrate Apache Lucene with MongoDB? 有什么方法可以将Apache Lucene与MongoDB集成? I have MongoDB database, I'm working on a Java project, I need an efficient partial-text searching on specific fields of a Collection; 我有MongoDB数据库,正在从事Java项目,需要在Collection的特定字段上进行有效的部分文本搜索; It seems like Mongodb Full-Text search is efficient but, It doesn't support partial search, also I need auto completion, I want to make the front-end Light and I want to do this autocomplete functionality in the back-end. 看来Mongodb全文搜索是高效的,但是,它不支持部分搜索,我还需要自动完成,我想制作前端Light,并且我想在后端执行此自动完成功能。 Any better suggestion will be accepted, that is better solutions. 任何更好的建议都会被接受,那就是更好的解决方案。 I'm new to this project. 我是这个项目的新手。 Hopping a soon reply, Thanks. 希望很快得到答复,谢谢。

Now there's MongoDB Atlas Full-Text Search (currently in beta) that uses Apache Lucene as a backend. 现在有使用Apache Lucene作为后端的MongoDB Atlas全文搜索 (当前处于beta版)。

A wide range of query operators are supported — everything from wildcard and fuzzy search to boolean and compound queries. 支持各种查询运算符-从通配符和模糊搜索到布尔和复合查询,应有尽有。 Process text using linguistic rules with language analyzers, implement sophisticated scoring, and improve the user experience with highlighted snippets. 使用语言规则和语言分析器来处理文本,实现复杂的评分,并通过突出显示的摘录改善用户体验。

The requirements are: MongoDB Atlas cluster tier M30+, and running MongoDB v4.2+ 要求是:MongoDB Atlas集群层M30 +,并运行MongoDB v4.2 +

See MongoDB Atlas: Full Text Search documentation page and Tutorial: Create and Query a FTS Index for more information. 有关更多信息,请参阅MongoDB Atlas:全文搜索文档页面教程:创建和查询FTS索引

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM