You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by abhayd <aj...@hotmail.com> on 2011/07/20 09:34:21 UTC

suggester component from trunk throwing error

hi 
I am trying to configure suggester component. I downloaded solr from trunk
and did a build.

here is my config
  <requestHandler name="/suggest"
class="org.apache.solr.handler.component.SearchHandler">
  	<lst name="defaults">
  		<str name="spellcheck">true</str>
  		<str name="spellcheck.dictionary">suggest</str>
  		<str name="spellcheck.count">10</str>
 	</lst>
 	<arr name="components">
 	 <str>suggest</str>
 	</arr>
  </requestHandler>

  <searchComponent name="suggest" class="solr.SpellCheckComponent">
 	<lst name="spellchecker">
	  	<str name="name">suggest</str>
	  	<str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
	  	<str
name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookup</str>
	  	<str name="field">name_autocomplete</str>
	  	<str name="buildOnCommit">true</str>
	</lst>
  </searchComponent>

When i build my index, index gets created but i get following exception
-------------------------------------------------------------------------------------------------
Jul 20, 2011 2:32:00 AM
org.apache.solr.handler.component.SpellCheckComponent$SpellCheckerListener
buildSpellIndex
INFO: Building spell index for spell checker: suggest
Jul 20, 2011 2:32:00 AM org.apache.solr.spelling.suggest.Suggester build
INFO: build()
Jul 20, 2011 2:32:00 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NoSuchMethodError:
org.apache.lucene.index.IndexReader.fields()Lorg/apache/lucene/index/Fields;
        at
org.apache.lucene.index.MultiFields.getFields(MultiFields.java:64)
        at
org.apache.lucene.index.MultiFields.getFields(MultiFields.java:69)
        at
org.apache.lucene.index.MultiFields.getTerms(MultiFields.java:142)
        at
org.apache.lucene.search.spell.HighFrequencyDictionary$HighFrequencyIterator.<init>(HighFrequencyDictionary.java:65)
        at
org.apache.lucene.search.spell.HighFrequencyDictionary.getWordsIterator(HighFrequencyDictionary.java:54)
        at org.apache.lucene.search.suggest.Lookup.build(Lookup.java:63)
        at
org.apache.solr.spelling.suggest.Suggester.build(Suggester.java:136)
        at
org.apache.solr.handler.component.SpellCheckComponent$SpellCheckerListener.buildSpellIndex(SpellCheckComponent.java:373)
        at
org.apache.solr.handler.component.SpellCheckComponent$SpellCheckerListener.newSearcher(SpellCheckComponent.java:358)
        at org.apache.solr.core.SolrCore$4.call(SolrCore.java:1163)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)

Any help?


--
View this message in context: http://lucene.472066.n3.nabble.com/suggester-component-from-trunk-throwing-error-tp3184736p3184736.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: suggester component from trunk throwing error

Posted by abhayd <aj...@hotmail.com>.
i had a old jar in build.

Everything works fine now

--
View this message in context: http://lucene.472066.n3.nabble.com/suggester-component-from-trunk-throwing-error-tp3184736p3185681.html
Sent from the Solr - User mailing list archive at Nabble.com.