Hello,
I'm trying to get Solr 4.4 up and running. I only want a single core (for now). I'm running this with Tomcat on Apache. I have a couple of different issues, which may be resolved by including a properly written solr.xml file.

First, when I navigate to

http://{myhost}:8080/solr/

I get what looks like the admin page, but it says that there are solr core initialization failures, and the links on the page just bring me back to the same page.

Second, when I try to put a doc in the index using the PHP Pecl Solr package from a page on my site, I get errors that indicate that Solr can't see my schema.xml file, since Solr doesn't recognize some of the fields that I've defined. I have my updated schema.xml file in /etc/solr/collection1/conf/

This is the error I get:

*Fatal error*: Uncaught exception 'SolrClientException' with message 'Unsuccessful update request. Response Code 400. <?xml version="1.0" encoding="UTF-8"?> <response> <lst name="responseHeader"> <int name="status">400</int> <int name="QTime">1</int> </lst> <lst name="error"> <str name="msg">ERROR: [doc=334455] unknown field 'brand'</str> <int name="code">400</int> </lst> </response> ' in XXXXX: SolrClient->addDocument(Object(SolrInputDocument)) #1 {main} thrown in XXXXXX

And this is the relevant section of my schema.xml

<field name="brand" type="int" indexed="false" stored="true" required="true"/>

After perusing the help pages, I see a couple of different pages that indicate that because the directory structure has changed, Solr can no longer find the config files and start a core without including a solr.xml file with the proper settings. However, it's also my understanding from other pages that we only need solr.xml if we want to define multiple cores, and that a single core should work automatically.

So my question is: do I actually need to create a solr.xml file, and all the accompanying files that go into specifying a core? (I'm not sure if there are, but from some of the documentation it seems like there may be.) Or am I pursuing an unnecessary solution to these problems, and there's a simpler fix?

Thanks,
Brian

Reply via email to