[
https://issues.apache.org/jira/browse/SOLR-4729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Rowe updated SOLR-4729:
-----------------------------
Attachment: SOLR-4729.patch
The problem was this added code as part of SOLR-4503 in
IndexSchema.getCopySources():
{code:java}
for (DynamicCopy dynamicCopy : dynamicCopyFields) {
if (dynamicCopy.getDestFieldName().equals(destField)) {
sf.add(getField(dynamicCopy.getRegex()));
}
}
{code}
(I added this code because the javadocs said that dynamic fields were returned
but that wasn't happening.)
The problem was that {{getField("(glob)")}} will fail if "(glob)" isn't also a
separately defined dynamic field.
The attached patch fixes the error and adds a test that triggers it.
Committing shortly.
> Using a copyField with * as the source doesn't work
> ---------------------------------------------------
>
> Key: SOLR-4729
> URL: https://issues.apache.org/jira/browse/SOLR-4729
> Project: Solr
> Issue Type: Bug
> Components: Schema and Analysis
> Affects Versions: 4.2
> Reporter: Adam Hahn
> Attachments: SOLR-4729.patch
>
>
> It seems you can no longer use a wildcard as the source when defining a
> copyField. I don't believe that this was fixed as part of SOLR-4650 since
> I've tested it with the 4/17 nightly build and it doesn't work.
> I'm using the following line: <copyField source="*" dest="text"/>
> -If I index something, this line is ignored.- If I go to the Analysis tab,
> the fields aren't populated and I see the error:
> 'org.apache.solr.common.SolrException: undefined field: "*"' in the log.
> This worked correctly in 4.0, but I didn't test it in 4.1.
--
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]