but anyway,I've done it.thanks for your help. I did look up your
source code and find it easier to understand. this is the kind of help
that I want.
thank you very much then. :-)
On 10/27/10, Seth Rosen wrote:
> Yakob the boolean in the constructor should be true if you want to create a
> NEW in
Yakob the boolean in the constructor should be true if you want to create a
NEW index in INDEX_DIR and false to append to an existing one as seen here
[1]
As for adding a directory to an index you will need to validate the
directory, then loop through it recursively and add each doc to the writer
On 10/27/10, Seth Rosen wrote:
> Yakob,
> Here is a snippet of an example of IndexWriter from the lucene source that
> you might find helpful.
>
>
>> IndexWriter writer = new IndexWriter(FSDirectory.open(INDEX_DIR), new
>> StandardAnalyzer(Version.LUCENE_CURRENT), true,
>> IndexWriter.MaxFieldLeng
Yakob,
Here is a snippet of an example of IndexWriter from the lucene source that
you might find helpful.
> IndexWriter writer = new IndexWriter(FSDirectory.open(INDEX_DIR), new
> StandardAnalyzer(Version.LUCENE_CURRENT), true,
> IndexWriter.MaxFieldLength.LIMITED);
System.out.println("Indexing
well thanks anyway though.
On 10/27/10, 蒋明原 wrote:
> you are too lazy.download the lucene source code,take a glance and you will
> find demos;
>
> On Wed, Oct 27, 2010 at 8:43 PM, Yakob wrote:
>
>> I did searched about this constructor and find that it's already been
>> deprecated.
>>
>> http://
you are too lazy.download the lucene source code,take a glance and you will
find demos;
On Wed, Oct 27, 2010 at 8:43 PM, Yakob wrote:
> I did searched about this constructor and find that it's already been
> deprecated.
>
> http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/index/IndexWri
I did searched about this constructor and find that it's already been
deprecated.
http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/index/IndexWriter.html#IndexWriter(org.apache.lucene.store.Directory,
org.apache.lucene.analysis.Analyzer, boolean)
I am using lucene 3.0 now.can I really use
IndexWriter writer =new IndexWirter(path,analyzer,false);
the 3rd parameter is what you want.
than you can
writer.add(doc)
enjoy .
On Wed, Oct 27, 2010 at 8:04 PM, Yakob wrote:
> hello all,
> I would like to ask of how to add new documents to an existing lucene
> index. I mean what's class sh