lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@googlemail.com>
Subject Re: FSDirectory source code mistake!
Date Sun, 10 Jul 2011 16:11:15 GMT
Hey,

you are right FSDirectory is abstract, yet the fact that it doesn't
declare an abstract method doesn't make it wrong. Please use the
static factory methods FSDirectory.open(File) to create an instance.
This factory will create a reasonable default for your platform. see
the javadoc for details
(http://lucene.apache.org/java/3_3_0/api/core/org/apache/lucene/store/FSDirectory.html)

simon

On Sun, Jul 10, 2011 at 5:35 PM, Parsa Moshrefi
<parsa.moshrefi@gmail.com> wrote:
> Greeting,
> There's a mistake in writing the type of the class FSDirectory in the core
> of Lucene 3.3. This class is defined as an abstract one while No abstract
> method is found inside. Also it yields some other problems like not being
> able to create an instance of FSDirectory in the code.
> Please answer me as soon as possible !!
>
> regards
>

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


Mime
View raw message