Krish
Krish

Reputation: 167

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 ?

Upvotes: 0

Views: 816

Answers (1)

Matt Johnson-Pint
Matt Johnson-Pint

Reputation: 241420

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!

Upvotes: 3

Related Questions