title: solr - sunspot: Error when reindexing (Errno::ECONNREFUSED: Connection refused)
body: <p>World. 
  I'm new in rais. I have the problem:</p>
  
  <p>After I use class for steamming</p>
  
  <pre><code> &lt;filter class="solr.HunspellStemFilterFactory" dictionary="ru_RU.dic" affix="ru_RU.aff" ignoreCase="true" /&gt;
  </code></pre>
  
  <p>in "schema.xml" </p>
  
  <pre><code>&lt;fieldType name="text" class="solr.TextField" indexed="true" stored="true" multiValued="true" positionIncrementGap="100"&gt;
     &lt;analyzer type="index"&gt;
        &lt;tokenizer class="solr.LowerCaseFilterFactory"/&gt;
      &lt;filter class="solr.HunspellStemFilterFactory" dictionary="ru_RU.dic" affix="ru_RU.aff" ignoreCase="true" /&gt;
      &lt;filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="25" side="front" /&gt;
      &lt;filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="25" side="back" /&gt;
     &lt;/analyzer&gt;
     &lt;analyzer type="query"&gt;
         &lt;tokenizer class="solr.LowerCaseFilterFactory"/&gt;
      &lt;filter class="solr.HunspellStemFilterFactory" dictionary="ru_RU.dic" affix="ru_RU.aff" ignoreCase="true" /&gt; 
     &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  </code></pre>
  
  <p>I restart solr-server and then can't reindexing (rake sunspot:reindex). Get this error:</p>
  
  <pre><code>Errno::ECONNREFUSED: Connection refused - {:data=&gt;"&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;delete&gt;&lt;query&gt;type:Ad&lt;/query&gt;&lt;/delete&gt;", :headers=&gt;{"Content-Type"=&gt;"text/xml"}, :method=&gt;:post, :params=&gt;{:wt=&gt;:ruby}, :query=&gt;"wt=ruby", :path=&gt;"update", :uri=&gt;#&lt;URI::HTTP:0xa2a3280 URL:http://localhost:8982/solr/development/update?wt=ruby&gt;, :open_timeout=&gt;nil, :read_timeout=&gt;nil, :retry_503=&gt;nil, :retry_after_limit=&gt;nil}
  </code></pre>
  
  <p>If I delete hunspell from schema.xml reindexing are completed.
  ru_RU.dic and ru_RU.aff in utf-8.</p>
  
  <p>Thank you in advance)</p>