This question about : Answered

Field definition for 'webcat' missing, Solr indexing failures

I installed the July 2013 version of SolrPlugin. When indexing my site, I get a number of indexing failures like this:

Indexing topic TeamBlog.FoswikiAmStart
ERROR: 400 Bad Request: {"responseHeader":{"status":400,"QTime":2},"error":{"msg":"ERROR: [doc=TeamBlog.FoswikiAmStart] unknown field 'webcat'","code":400}}
 at /var/www/foswiki/lib/WebService/Solr.pm line 194.
        WebService::Solr::_send_update(WebService::Solr=HASH(0x3fd4730), "<add><doc><field name=\"contributor\">ClausBrod</field><field n"...) called at /var/www/foswiki/lib/WebService/Solr.pm line 79
        WebService::Solr::add(WebService::Solr=HASH(0x3fd4730), WebService::Solr::Document=HASH(0x46fb240)) called at /var/www/foswiki/lib/Foswiki/Plugins/Sol

Seems like the ClassificationPlugin introduced the 'webcat' field. However, there is no field definition for 'webcat' in the schema.xml file which ships with the standard installation for SolrPlugin.

The indexing failures went away after adding the following to schema.xml:
   <field name="webcat" type="string" multiValued="true" termVectors="true" />

However, since my knowledge of Solr is somewhat rusty, and since I also do not know the exact purpose of the 'webcat' field, I am not sure if this field definition is really appropriate, so please advise. Thanks!

-- ClausBrod - 04 Jan 2014

This has been fixed in the upcoming 3.0.0er release which depends on Solr-5.0.0+. Installation is a lot easier now: SolrPlugin comes with a "configset" tailored towards Foswiki needs; Solr cores might be instantiated using these config sets in a much cleaner way now.

-- MichaelDaum - 27 Feb 2015
 

QuestionForm edit

Subject
Extension SolrPlugin
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r2 - 27 Feb 2015, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy