You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Sebastian Nagel (Jira)" <ji...@apache.org> on 2022/08/17 13:44:00 UTC
[jira] [Resolved] (NUTCH-2957) indexer-solr / Solr schema: add fall-back field definitions for unknown index fields
[ https://issues.apache.org/jira/browse/NUTCH-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebastian Nagel resolved NUTCH-2957.
------------------------------------
Resolution: Implemented
> 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)