[
https://issues.apache.org/jira/browse/LUCENE-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790809#action_12790809
]
John Wang commented on LUCENE-2160:
-----------------------------------
Just did a test:
You are right, IndexReader.terms(Term) would no longer find the rename field
name if the field name is out of order. If the order is preserved, it is ok,
e.g. list of fields "a","c","f", if renaming "c" -> "d", it would be ok.
Our use case is however this:
We messed up our data in say, field "c", we rename it to "c_bak", and create a
parallel index with one field and name if "c". merge the indexes. c_bak is then
never accessed.
Would this work?
> Tool to rename a field
> ----------------------
>
> Key: LUCENE-2160
> URL: https://issues.apache.org/jira/browse/LUCENE-2160
> Project: Lucene - Java
> Issue Type: New Feature
> Components: contrib/*
> Affects Versions: 3.0
> Reporter: John Wang
> Attachments: RenameField.java, RenameField.java
>
>
> We found it useful to be able to rename a field.
> It can save a lot of reindexing time/cost when being used in conjunction with
> ParallelReader to update partially a field.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]