简体   繁体   中英

asp.net website full text search with ravendb and lucene

I am using ravendb for my intranet website. I need to implement full text search on whole website ? I can use ravendb's linq search queries for documents which is lucene based in the background.

Other approach is to use Lucene.Net library to implement fulltext search independently.

Whatever approach I choose, it should be able to search through attachments stored in blob format in ravendb.

Any ideas or suggestions please ?

RavenDB is fully integrated with Lucene. There would be little point to using it independently.

But by definition, attachments are not searchable. You can certainly store very large documents that are fully searchable, but they wouldn't be attachments. The whole point of attachments are for things that you wouldn't want to search. Example: videos, photos, music, etc.

Review:

Revised Answer

I have written a bundle that uses IFilters to have RavenDB automatically extract the contents of attachments and index them with Lucene. It is available here .

Enjoy!

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