[
https://issues.apache.org/jira/browse/SOLR-3798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13591456#comment-13591456
]
Steve Rowe commented on SOLR-3798:
----------------------------------
After [chatting with Hoss on #lucene-dev
IRC|http://colabti.org/irclogger/irclogger_log/lucene-dev?date=2013-03-01#l9],
I understand copyFields a little better. Hoss argued that "undeclared explicit
field" is an inaccurate description of the "third kind of thing" I was
referring to, and I agree.
A hopefully better characterization - something like this should be on the wiki:
{panel}
{{<copyField>}} source or dest values can be either field names or dynamic
field references.
A dynamic field reference is either an exact {{<dynamicField>}} name, or a
pattern that accepts a subset of the language accepted by the pattern for a
referenced dynamic field. Subset pattern syntax is the same as that for
dynamic field names (*"\*string"* or *"string\*"*), with the additional
possibility of excluding the asterisk (*"string"*).
A {{<copyField> *source*}} subset pattern operates as a filter: instead of
triggering a field copy for all field names matched by the referenced dynamic
field pattern, only those that match the subset pattern will trigger a field
copy.
A {{<copyField> *dest*}} subset pattern operates in two ways: the target
field's type is drawn from the referenced {{<dynamicField>}}; and the target
field name is generated using the subset pattern as a template, unless the
subset pattern excludes the asterisk, in which case the subset pattern itself
becomes the target field name.
{panel}
> copyField logic in LukeRequestHandler is primitive, doesn't work well with
> dynamicFields
> ----------------------------------------------------------------------------------------
>
> Key: SOLR-3798
> URL: https://issues.apache.org/jira/browse/SOLR-3798
> Project: Solr
> Issue Type: Bug
> Reporter: Hoss Man
> Attachments: SOLR-3798.patch
>
>
> looking into SOLR-3795 i realized there is a much bigger problem with how
> LukeRequestHandler tries to get copyfield info for fields and dynamicFields
> the same way, and it just doesn't work.
> see the patch in SOLR-3795 for a commented out example of a test that still
> fails (ie: trying to get the "copySource" info for a dynamicField)
--
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]