Add this to your schema.xml:

<dynamicField name="*_str" type="string" indexed="true" stored="true"/>
https://lucene.apache.org/solr/guide/6_6/dynamic-fields.html

On Thu, 2019-02-28 at 16:45 -0600, Dave Beckstrom wrote:
I'm getting much closer to getting Nutch and SOLR to play well together.
(Ryan - thanks for your help on my last question.  Your suggestion fixed
that issue)

What is happening now is that Nutch finishes crawling, then calls the
index-writer to update solr.  The SOLR update fails with this message:

2019-02-28 17:34:33,742 WARN  mapred.LocalJobRunner -
job_local966037581_0001
java.lang.Exception:
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error
from server at http://127.0.0.1:8981/solr/<collection name>: copyField dest
:'metatag.description_str' is not an explicit field and doesn't match a
dynamicField.

The mapping section of the index writer originally had this value:

<field source="metatag.description" dest="description"/>

I have removed everything from the mapping section of the index-writer and
cycled the SOLR service.  My mapping section now looks like this:

    <mapping>
      <copy/>
      <rename/>
      <remove>
        <field source="segment"/>
      </remove>
    </mapping>

I cannot find any reference to "metatag.description_str" in any of the
nutch xml files or the SOLR files.

Any idea of how I can fix this issue?

Thank you!

--
*Fig Leaf Software, Inc.*
https://www.figleaf.com/
<https://www.figleaf.com/>

Full-Service Solutions Integrator






Reply via email to