[
https://issues.apache.org/jira/browse/LUCENE-7230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15247422#comment-15247422
]
Michael McCandless commented on LUCENE-7230:
--------------------------------------------
I think this could be a little too dangerous to expose, e.g. if someone tries
to then make a {{FloatPoint}} with doc values enabled, bad things happen since
{{FloatPoint}} encodes a float as a binary value, while doc values expects a
long value. Likewise, simply turning on stored would store a binary value
today.
I think instead you should separately add a {{StoredField}} to your document?
The 6.0.0 javadocs failed to point this out, but we've fixed that for 6.1.
> IntPoint, LongPoint etc. need a ctor with FieldType
> ---------------------------------------------------
>
> Key: LUCENE-7230
> URL: https://issues.apache.org/jira/browse/LUCENE-7230
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/index
> Affects Versions: 6.0
> Reporter: Philip Helger
>
> Previously IntField, LongField etc. had constructors that also take a
> FieldType. Such a constructor would also be required for IntPoint, LongPoint
> etc. so that a 'stored' Point can easily be created.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]