Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This blog may solve your question:</p> <p>Install Solr 4.4 with Jetty in CentOS, and set up Solr server to work with Sunspot Gem. ( <a href="http://blogs.pigrider.com/blogs/26" rel="noreferrer">http://blogs.pigrider.com/blogs/26</a> )</p> <p>Below are some parts from the blog: ......</p> <p>8) Copy this configuration file schema.yml from your Rails application to the home directory of the running Solr 4.4 instance. It will overrider the Solr example configuration file there, and it will set up Solr 4.4 server to work with Sunspot Gem. cp /RailsApplicationPath/Solr/conf/schema.yml /opt/solr/solr/collection1/conf/.</p> <p>The home directory of the running Solr 4.4 instance is /opt/solr/solr/collection1/. You can find this information from Solr admin page http:// l o c a l h o s t :8983/solr/admin</p> <p>9) Add <em>version</em> field into the configuration file schema.yml to satisfy Solr 4.4 initialization requirement. Actually, two lines of code need to be added into the file. They are:</p> <pre><code>&lt;field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/&gt; &lt;fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/&gt; </code></pre> <p>The configuration file schema.yml eventually will look like:</p> <pre><code>&lt;schema name="sunspot" version="1.0"&gt; &lt;types&gt; &lt;fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/&gt; &lt;!-- *** Other Sunspot fieldType Definitions *** --&gt; &lt;/types&gt; &lt;fields&gt; &lt;field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/&gt; &lt;!-- *** Other Sunspot field Definitions *** --&gt; &lt;/fields&gt; &lt;!-- *** Other Sunspot Configurations *** --&gt; &lt;/schema&gt; </code></pre> <p>......</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload