lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Another Newbie question--FSDirectory
Date Tue, 10 Feb 2004 08:42:16 GMT
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 <ssmith@mainstreamdata.com> 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: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


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


Mime
View raw message