Can I store a Lucene index in a database or other location than a file system?

血红的双手。 提交于 2019-12-06 08:40:51

Azure Directory for Lucene.Net: https://github.com/azure-contrib/AzureDirectory

A bit, and probably not well supported, but there is no another option that I am aware of. You cannot store Lucene data in DB (whatever DB). It just makes no sense.

All I/O operations in Lucene is done through the Directory class. So if want to use a different storage engine for your index, all you need to do is implement a custom Directory. For an example of how to do this, have a look at this project: MongoDB.Lucene. Others have implemented it on top of Azure, Redis, etc.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!