lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Query regarding Spelling Suggestions
Date Sun, 11 Jan 2009 21:51:51 GMT
Can you send the full log?

On Jan 11, 2009, at 1:51 PM, Deshpande, Mukta wrote:

> I am using the example schema that comes with the Solr installation  
> downloaded from http://www.mirrorgeek.com/apache.org/lucene/solr/.
> I have added the "word"  field with "textSpell" fieldtype in the  
> schema.xml file, as specified in the below mail.
>
> My spelling index exist under <SOLR HOME>/data/
> If I open my index in Luke  I can see the entries against "word"  
> field.
>
> Thanks,
> ~Mukta
>
>
> ________________________________
>
> From: Grant Ingersoll [mailto:gsingers@apache.org]
> Sent: Fri 1/9/2009 8:29 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Query regarding Spelling Suggestions
>
>
>
> Can you put the full log (as short as possibly demonstrates the
> problem) somewhere where I can take a look?  Likewise, can you share
> your schema?
>
> Also, does the spelling index exist under <SOLR HOME>/data/index?  If
> you open it w/ Luke, does it have entries?
>
> Thanks,
> Grant
>
> On Jan 8, 2009, at 11:30 PM, Deshpande, Mukta wrote:
>
>>
>> Yes. I send the build command as:
>> http://localhost:8080/solr/select/?q=documnet&spellcheck=true&spellcheck
>> .build
>> =true&spellcheck.count=2&spellcheck.q=parfect&spellcheck.dictionar
>> y=dict
>>
>> The Tomcat log shows:
>> Jan 9, 2009 9:55:19 AM org.apache.solr.core.SolrCore execute
>> INFO: [] webapp=/solr path=/select/
>> params
>> ={spellcheck=true&q=documnet&spellcheck.q=parfect&spellcheck.dicti
>> onary=dict&spellcheck.count=2&spellcheck.build=true} hits=0 status=0
>> QTime=141
>>
>> Even after sending the build command I do not get any suggestions.
>> Can you please check.
>>
>> Thanks,
>> ~Mukta
>>
>> -----Original Message-----
>> From: Grant Ingersoll [mailto:gsingers@apache.org]
>> Sent: Thursday, January 08, 2009 7:42 PM
>> To: solr-user@lucene.apache.org
>> Subject: Re: Query regarding Spelling Suggestions
>>
>> Did you send in the build command?  See
>> http://wiki.apache.org/solr/SpellCheckComponent
>>
>> On Jan 8, 2009, at 5:14 AM, Deshpande, Mukta wrote:
>>
>>> Hi,
>>>
>>> I am using Wordnet dictionary for spelling suggestions.
>>>
>>> The dictionary is converted to Solr index  with only one field  
>>> "word"
>>> and stored in location <solr-home>/data/syn_index, using
>>> syns2Index.java program available at
>>> http://www.tropo.com/techno/java/lucene/wordnet.html
>>>
>>> I have added the "word" field in my "schema.xml" as <field
>>> name="word"
>>
>>> type="textSpell" indexed="true" stored="true"/>
>>>
>>> My application data indexes are in <solr-home>/data
>>>
>>> I am trying to use solr.IndexBasedSpellChecker to get spelling
>>> suggestions.
>>>
>>> My spell check component is configured as:
>>>
>>> <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
>>> <str name="queryAnalyzerFieldType">textSpell</str>
>>> <lst name="spellchecker">
>>>    <str name="name">dict</str>
>>>    <str name="classname">solr.IndexBasedSpellChecker</str>
>>>    <str name="field">word</str>
>>>    <str name="characterEncoding">UTF-8</str>
>>>    <str name="spellcheckIndexDir">./syn_index</str>
>>> </lst>
>>> </searchComponent>
>>>
>>> I have added this component to my standard request handler as:
>>>
>>> <requestHandler name="standard" class="solr.StandardRequestHandler"
>>> default="true">
>>>   <lst name="defaults">
>>>       <str name="echoParams">explicit</str>
>>>   </lst>
>>>   <arr name="last-components">
>>>       <str>spellcheck</str>
>>>   </arr>
>>> </requestHandler>
>>>
>>> With the above configuration, I do not get any spelling suggestions.
>>> Can
>>> somebody help ASAP.
>>>
>>> Thanks,
>>> ~Mukta
>>
>>








Mime
View raw message