[
https://issues.apache.org/jira/browse/LUCENE-5192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754069#comment-13754069
]
Michael McCandless commented on LUCENE-5192:
--------------------------------------------
bq. With this fix, if somebody tries to add a field 'f' as NUMERIC and then
BINARY, we won't catch it?
Actually, we still catch it, because in DocValuesProcessor.addField we always
call fieldInfo.setDocValuesType(), so the exc will be thrown from there.
Still, I think addOrUpdate *should* fold in the docValues type ... so I'll just
go with Shai's 2nd suggestion ...
> FieldInfos.Builder failed to catch adding field with different DV type under
> some circumstances
> -----------------------------------------------------------------------------------------------
>
> Key: LUCENE-5192
> URL: https://issues.apache.org/jira/browse/LUCENE-5192
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/index
> Reporter: Shai Erera
> Assignee: Shai Erera
> Fix For: 5.0, 4.5
>
> Attachments: LUCENE-5192.patch, LUCENE-5192.patch
>
>
> I found it while working on LUCENE-5189. I'll attach a patch with a simple
> testcase which reproduces the problem and a fix.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]