azure-contrib / AzureDirectory

A Lucene Directory Provider for Azure Blob Storage
Microsoft Public License
77 stars 57 forks source link

Add the ability to set root folder #13

Closed Piedone closed 10 years ago

Piedone commented 10 years ago

It's nice that you can set the container where the index is stored but it would be better if you could also set the root folder of the index inside that too; i.e. add the ability to have multiple indices stored in the same container. This is needed for scenarios where you have many smaller indices and you don't want to have a separate container for all of them.

Piedone commented 10 years ago

I solved this (but in a fork that deviates greatly from the original source) by having a _root string field and always prefixing the name with it when calling GetBlockBlobReference(). Would you like me to apply the changes in a fork to the latest source?

richorama commented 10 years ago

yes, that would be great.