[ 
https://issues.apache.org/jira/browse/LUCENE-4087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291946#comment-13291946
 ] 

Simon Willnauer commented on LUCENE-4087:
-----------------------------------------

{quote}
Can we shorten the javadoc to simply state "Changing the DocValue type
for a given field is not supported."? Sure we make best effort to
"recover" today but I don't think we should detail particulars of the
specific best effort we're doing in 4.0?
{quote}

I am not sure if we should say that since its not true. you can safely change a 
float into a double and if you reindex all documents you will eventually 
converge to double. Same is true for Sorted and go from fixed to variable or 
extend the precision of an integer. I think its just fair to document that. if 
we can change it in future releases is a different thing.
                
> Provide consistent IW behavior for illegal meta data changes
> ------------------------------------------------------------
>
>                 Key: LUCENE-4087
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4087
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/index
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>             Fix For: 4.0, 4.1, 5.0
>
>         Attachments: LUCENE-4087.patch, LUCENE-4087.patch
>
>
> Currently IW fails late and inconsistent if field metadata like an already 
> defined DocValues type or "un"-omitting norms.
> we can approach this similar to how we handle consistent field number and:
>  
> * throw exception if indexOptions conflict (e.g. omitTF=true versus
> false) instead of silently dropping positions on merge
> * same with omitNorms
> * same with norms types and docvalues types
> * still keeping field numbers consistent
> this way we could eliminate all these traps and just give an
> exception instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]

Reply via email to