This question about Using an extension: Answered

Chatty output from solrindex - is this imprtant?

Running tools/solrindex mode=full optimize=on

I am getting a lot of output. It looks like mostly debugging traces, but I can't be sure what, if any of it, might be important.

Example for one indexed page:
Indexing topic Vicki.Twitter.TwitterLog2012-Jun-03
ERROR: 400 ERRORunknown_field_collection: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 400 </title>
</head>
<body><h2>HTTP ERROR: 400</h2><pre>ERROR:unknown field 'collection'</pre>
<p>RequestURI=/solr/update</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                

</body>
</html>
 at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/WebService/Solr.pm line 185
   WebService::Solr::_send_update('WebService::Solr=HASH(0x102a612b0)', '<add><doc><field name="contributor">UnknownUser</field><field...') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/WebService/Solr.pm line 74
   WebService::Solr::add('WebService::Solr=HASH(0x102a612b0)', 'WebService::Solr::Document=HASH(0x111f2fe18)') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugins/SolrPlugin/Index.pm line 759
   Foswiki::Plugins::SolrPlugin::Index::add('Foswiki::Plugins::SolrPlugin::Index=HASH(0x102a60ef0)', 'WebService::Solr::Document=HASH(0x111f2fe18)') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugins/SolrPlugin/Index.pm line 539
   Foswiki::Plugins::SolrPlugin::Index::__ANON__() called at /Library/Perl/5.10.0/Error.pm line 419
   eval {...} called at /Library/Perl/5.10.0/Error.pm line 411
   Error::subs::try('CODE(0x1122c28f0)', 'HASH(0x1122c2578)') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugins/SolrPlugin/Index.pm line 544
   Foswiki::Plugins::SolrPlugin::Index::indexTopic('Foswiki::Plugins::SolrPlugin::Index=HASH(0x102a60ef0)', 'Vicki/Twitter', 'TwitterLog2012-Jun-03') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugins/SolrPlugin/Index.pm line 197
   Foswiki::Plugins::SolrPlugin::Index::update('Foswiki::Plugins::SolrPlugin::Index=HASH(0x102a60ef0)', 'all', 'full') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugins/SolrPlugin/Index.pm line 99
   Foswiki::Plugins::SolrPlugin::Index::__ANON__() called at /Library/Perl/5.10.0/Error.pm line 419
   eval {...} called at /Library/Perl/5.10.0/Error.pm line 411
   Error::subs::try('CODE(0x102abe048)', 'HASH(0x102a739f0)') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugins/SolrPlugin/Index.pm line 114
   Foswiki::Plugins::SolrPlugin::Index::index('Foswiki::Plugins::SolrPlugin::Index=HASH(0x102a60ef0)') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugins/SolrPlugin.pm line 170
   Foswiki::Plugins::SolrPlugin::indexCgi('Foswiki=HASH(0x10082ea80)') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/UI.pm line 316
   Foswiki::UI::__ANON__() called at /Library/Perl/5.10.0/Error.pm line 419
   eval {...} called at /Library/Perl/5.10.0/Error.pm line 411
   Error::subs::try('CODE(0x100a2ebd8)', 'HASH(0x10082e630)') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/UI.pm line 435
   Foswiki::UI::_execute('Foswiki::Request=HASH(0x100905f10)', 'CODE(0x100a4fca0)', 'command_line', 1, 'solrindex', 1) called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/UI.pm line 274
   Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x100905f10)') called at /Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Engine/CLI.pm line 53
   Foswiki::Engine::CLI::run('Foswiki::Engine::Legacy=HASH(0x100905658)') called

-- VickiBrown - 11 Jul 2012

Your solr server is using an old schema.xml (and presumably solconfig.xml). Please use those coming with the latest SolrPlugin located in <foswiki-dir>/solr/multicore/conf/

-- MichaelDaum - 12 Jul 2012

I installed everything from the SVN package. How can I ensure that the schema.xml is correct?

Do I just need to ensure that I don't have any leftover schema.xml files lying about in the solr subddir hierarchy?

-- VickiBrown - 15 Jul 2012

I checked. The only schema.xml file I have is ./solr/multicore/conf/schema.xml. The only solrconfig.xml I have is ./solr/multicore/conf/solrconfig.xml.

I'm still getting the same chatty output and no indexes appear to be created.

FYI, all of this chatty output comes to the screen when I run solrindex as well.

How do I troubleshoot the xml files?

-- VickiBrown - 15 Jul 2012

I think I found the problem. I had several copies of solr running (started in the past and never stopped). I cleared all of that out and now I don't have chatty output.

I still can't create indexes andSolrSearch can't find the server but those are different issues.

-- VickiBrown - 15 Jul 2012
 

QuestionForm edit

Subject Using an extension
Extension SolrPlugin
Version Foswiki 1.1.4
Status Answered
Related Topics
Topic revision: r5 - 15 Jul 2012, VickiBrown
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