简体   繁体   中英

How can I integrate MongoDB with Apache Lucene?

Is there any way to integrate Apache Lucene with 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; 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. 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.

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+

See MongoDB Atlas: Full Text Search documentation page and Tutorial: Create and Query a FTS Index for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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