[
https://issues.apache.org/jira/browse/SOLR-4329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ishan Chattopadhyaya updated SOLR-4329:
---------------------------------------
Attachment: SOLR-4329.patch
Since its been a while on this issue, here's a patch to set the ball rolling
again.
This is based on the refactoring of the FieldType's createFields() to now
accept (SchemaField, Object[] vals, float[] boosts). As David mentioned in
comment 1, it has an extra wrapper of array, but API-wise looks most consistent
with what other field types are already doing.
(All tests passing after this refactor)
[~dsmiley], do you see any usecase that will be missed with this approach?
> Have DocumentBuilder give value collections to the FieldType
> ------------------------------------------------------------
>
> Key: SOLR-4329
> URL: https://issues.apache.org/jira/browse/SOLR-4329
> Project: Solr
> Issue Type: New Feature
> Components: update
> Reporter: David Smiley
> Assignee: David Smiley
> Fix For: 4.8
>
> Attachments: DocumentBuilder.java, SOLR-4329.patch
>
>
> I'd like to write a multi-value-configured FieldType that can return a
> DocValue Field from its createFields(). Since DocValues holds a single value
> per document for a field, you can only have one. However
> FieldType.createFields() is invoked by the DocumentBuilder once per each
> value being indexed.
> FYI the reason I'm asking for this is for a multi-valued spatial field to
> store its points in DocValues.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]