CopyInReadDirectory and local filesystem path

2014-10-21 Thread Chetan Mehrotra
For implementing CopyOnReadDirectory (OAK-1724) I need to copy the Lucene index content to a local directory. However as there can be multiple Lucene indexes and they may be at non root location (OAK-2211) I need a way to map the JCR path of index to path on local filesystem. For e.g. if we have

Re: CopyInReadDirectory and local filesystem path

2014-10-21 Thread Thomas Mueller
Hi, What about using the SHA-2 hash code of the JCR path? Regards, Thomas On 21/10/14 09:53, Chetan Mehrotra chetan.mehro...@gmail.com wrote: For implementing CopyOnReadDirectory (OAK-1724) I need to copy the Lucene index content to a local directory. However as there can be multiple Lucene

Re: CopyInReadDirectory and local filesystem path

2014-10-21 Thread Chetan Mehrotra
On Tue, Oct 21, 2014 at 1:44 PM, Thomas Mueller muel...@adobe.com wrote: What about using the SHA-2 hash code of the JCR path That can also be used. Only thing is that it would not be possible to map back from index dir to corresponding index defintion. But that can be managed via exposing the