If you sort your old index file by filename, then iterate over the sorted file,
your problem is solved, no?
From: Lokendra Singh [mailto:lsingh@gmail.com]
Sent: Friday, February 25, 2011 1:27 AM
To: java-u...@lucene.apache.org
Cc: dev@lucene.apache.org
Subject: Converting an existing index
Hello Lokendra,
You could updates frequently. Anyway i think it is one time job.
My advice would be do insertion and updates in batch.
1. Parse your file and read 1000 lines
2. Do some aggregation and insert / update with lucene.
Regards
Aditya
www.findbestopensource.com
On Fri, Feb 25, 2011
On 2/25/2011 12:26 AM, Lokendra Singh wrote:
Hi all,
I am seeking for some guidelines to directly convert an already
existing index to Lucene index.
The index available to me is of a set of pairs. Where
each pair is :
< word , fileName >
i.e a word as a 'value1', and the 'value2' being the
Hi all,
I am seeking for some guidelines to directly convert an already existing
index to Lucene index.
The index available to me is of a set of pairs. Where each
pair is :
< word , fileName >
i.e a word as a 'value1', and the 'value2' being the fileName containing
that word.
A word might appea