lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: renaming fields in index
Date Mon, 07 Mar 2005 17:26:15 GMT
Ajay Upadhyaya wrote:
> We have large number of documents which are indexed(approx 1M), the
> size of the index is approx 1G. . We have few Keyword fields as well
> as few UnStored fields.
> 
> Now there is a requirement to change names of few fields. The
> application code can be easily changed to created the new document
> with new field names but existing documents have to be migrated to
> have new field names, so the query on new names can find them. What
> could be the easiest & fastest way to do this.

You cannot easily change the field names in the index.

You can either:

1. Rebuild your index with the new field names, or;

2. Keep the old field names in the index, and translate new field names 
in queries to the old field names.  Users don't need to know what the 
field names are in the index.

Doug

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


Mime
View raw message