You should probably always try to use Directory, and not String nor
FSDirectory.
Directory is the most abstract 'index type and location entity', and
using it smartly allows you to change your index type and location more
easily, should you ever choose to do that.

Otis

--- Scott Smith <[EMAIL PROTECTED]> wrote:
> I was creating the IndexSearcher using a standard String containing
> the
> Lucene index directory pathname.  I noticed that "everyone" seems to
> create a FSDirectory and use that to create the searcher.  However,
> no
> one seems to use this for the IndexWriter.  Can someone tell me what
> the
> advantage of using the FSDirectory is over just specifying the index
> directory in a String? why it would be used for searching, but not
> for
> indexing?  Anything else relevant to FSDirectory?  Is it mostly
> convention and the real reason for it's existence is when you use the
> RAMDirectory or CompoundFileDirectory (or you don't want some method
> to
> care what flavor directory it is looking at)?
> 
> Scott
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to