lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Smith" <ssm...@mainstreamdata.com>
Subject RE: Another Newbie question--FSDirectory
Date Tue, 10 Feb 2004 19:31:13 GMT
I agree that is sensible.  Does FSDirectory provide anything more than a
wrapper around OS directory structures?

-----Original Message-----
From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] 
Sent: Tuesday, February 10, 2004 1:42 AM
To: Lucene Users List
Subject: Re: Another Newbie question--FSDirectory


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


---------------------------------------------------------------------
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