If I have two types of documents to index, and I’m using two different lucene indexesm do I need to provide two different Directory objects? Does each index require its own directory?
If I have two types of documents to index, and I’m using two different
Share
Yes, because every
Directoryinstance has its own path, and each index must have its own location. You can’t have two indexes on the same location.