Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2957

indexer-solr / Solr schema: add fall-back field definitions for unknown index fields

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 1.18
    • 1.19
    • None
    • None
    • Patch Available

    Description

      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:

      $> 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)
              ...
      

      Would be nice to have a fall-back field definition which allows for unspecified fields.

      Attachments

        Issue Links

          Activity

            People

              snagel Sebastian Nagel
              snagel Sebastian Nagel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: