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

David Smiley commented on SOLR-4329:
------------------------------------

One more thing... as part of looking over DocumentBuilder with a fine toothed 
comb, I noticed that schema.getCopyFieldsList(ifield.getName()) was being 
called for *every* field value. This method internally has to do a bunch of 
pattern matching to build up a list.  Quite wasteful.  I simply moved this out 
of the loop.  Another optimization that could be added is internal to that 
method implementation -- return Collections.EMPTY_LIST if there are no copy 
fields, instead of constructing an ArrayList.
                
> 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
>         Attachments: DocumentBuilder.java
>
>
> 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 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]

Reply via email to