lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From obi240 <obinna...@yahoo.co.uk>
Subject Re: NULL POINTER EXCEPTION WITH SOLR SUGGESTER
Date Tue, 15 Jan 2013 10:44:18 GMT
Hi,

Still not getting response trying out the solr autosuggest component. I
might just add that am working with solr 4. Now, the response i get is:

<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1</int>
</lst>
<lst name="spellcheck">
<lst name="suggestions"/>
</lst>
</response>


I've changed my solrconfig and schema to try it out using the solr example
as below:

  <requestHandler class="org.apache.solr.handler.component.SearchHandler"
name="/suggest">
    <lst name="defaults">
      <str name="spellcheck">true</str>
      <str name="spellcheck.dictionary">suggest</str>
      <str name="spellcheck.onlyMorePopular">true</str>
      <str name="spellcheck.count">5</str>
      <str name="spellcheck.collate">true</str>
    </lst>
    <arr name="components">
      <str>suggest</str>
    </arr>
  </requestHandler>



  <searchComponent class="solr.SpellCheckComponent" name="suggest">
    <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</str>  
      <float name="threshold">0.005</float>
      <str name="buildOnCommit">true</str>

    </lst>
  </searchComponent>

I've tried it out using both solrJ and the solr 4 front end. I was wondering
if it might be the data, but my schema is as below:

 <fields>   
  
  <field name="id"   type="string"    indexed="true"  stored="true" 
multiValued="false" required="true"/>
  
  <field name="name" type="string" indexed="true" stored="true"
multiValued="true" />
    <field name="_version_" type="long"      indexed="true"  stored="true"/>
  
 </fields>

What am I doing wrong?



--
View this message in context: http://lucene.472066.n3.nabble.com/NULL-POINTER-EXCEPTION-WITH-SOLR-SUGGESTER-tp4032763p4033434.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message