[ https://issues.apache.org/jira/browse/NUTCH-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17576220#comment-17576220 ]
ASF GitHub Bot commented on NUTCH-2957: --------------------------------------- sebastian-nagel opened a new pull request, #739: URL: https://github.com/apache/nutch/pull/739 - add fall-back field definitions for unknown index fields - update comments and descriptions - fix indentation > indexer-solr / Solr schema: add fall-back field definitions for unknown index > fields > ------------------------------------------------------------------------------------ > > Key: NUTCH-2957 > URL: https://issues.apache.org/jira/browse/NUTCH-2957 > Project: Nutch > Issue Type: Improvement > Affects Versions: 1.18 > Reporter: Sebastian Nagel > Assignee: Sebastian Nagel > Priority: Major > Fix For: 1.19 > > > If a Nutch index field isn't defined in the schema.xml (shipped with > indexer-solr) the indexer fails, e.g. here by passing a static index field: > {noformat} > $> bin/nutch indexchecker \ > -Dplugin.includes='protocol-http|parse-html|index-static|indexer-solr' \ > -D'index.static=foo:bar' \ > -doIndex http://localhost/ > Exception in thread "main" > org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error > from server at http://localhost:8983/solr/nutch: copyField dest :'foo_str' is > not an explicit field and doesn't match a dynamicField. > at > org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:665) > at > org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:265) > at > org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248) > at > org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1290) > at > org.apache.nutch.indexwriter.solr.SolrIndexWriter.push(SolrIndexWriter.java:250) > ... > {noformat} > Would be nice to have a fall-back field definition which allows for > unspecified fields. -- This message was sent by Atlassian Jira (v8.20.10#820010)