Hi,
you can't read the property directly, you could of course load the same resource and parse the properties file.
I'd recommend you get a reference to the correct Reader given the type:
Code:
DirectoryProvider[] directoryProviders = getSearchFactory().getDirectoryProviders( TypeYouWantToSearchFor.class );
IndexReader indexReader = getSearchFactory().getReaderProvider().openReader( directoryProviders );
try {
IndexSearcher searcher = new IndexSearcher( indexReader );
... using the searcher
}
finally {
getSearchFactory().getReaderProvider().closeReader( indexReader );
}
this way you get the correct IndexReader even in case you enable sharding or other complex configurations.