You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Robichaud, Jean-Philippe" <Je...@scansoft.com> on 2005/06/16 21:53:33 UTC

Getting the "directory/location" of an IndexReader/IndexWriter

Hi Everyone.

I'm currently in a situation where I have multiples indexSearcher opened at
the same, each on different indices.  They are kept inside a
"IndicesManager" that export getSearcherAtLocation/FreeSearcher method. I
would like to be able to log the "path" used by a searcher I'm about to
"close" from the FreeSearcher method.  Is that possible without keeping an
external hash ?  I don't see any "getDirectoryName" in the definition of
IndexReader/IndexWriter.  I know that the "location" of a Lucene index is
quite abstract (db, ram, filesystem), but still, it would be good to have
some kind of a trace, no?

Any idea?

Thanks,

Jp

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org