lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dyer, James" <>
Subject RE: solr 4.2.1 spellcheck strange results
Date Thu, 15 May 2014 19:58:16 GMT
To achieve what you want, you need to specify a lightly analyzed field (no stemming) for spellcheck.
 For instance, if your "solr.SpellCheckComponent" in solrconfig.xml is set up with "field"
of "title_full", then try using "title_full_unstemmed".  Also, if you are specifying a "queryAnalyzerFieldType",
it should be the same as your unstemmed text field.

James Dyer
Ingram Content Group
(615) 213-4311

-----Original Message-----
From: HL [] 
Sent: Saturday, May 10, 2014 9:12 AM
Subject: solr 4.2.1 spellcheck strange results


I am querying the solr server spellcheck and the results I get back 
although at first glance look ok
it seems like solr is replying back as if it made the search with the 
wrong key.

so while I query the server with the word
Solr is responding me as if it was querying the database with the word 
"καρδυ" eliminating the last char
<lst name="spellcheck">
<lst name="suggestions">
<lst name="καρδυ">

Ideally, Solr should properly indicate that the suggestions correspond 
with "καρδυα" rather than "καρδυ".

Is there a way to make solr respond with the original search word from 
the query in it's responce, instead of the one that is getting the hits 
from ??


here is the complete solr responce
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">23</int>
<lst name="params">
<str name="spellcheck">true</str>
<str name="fl">*,score</str>
<str name="start">0</str>
<str name="q">καρδυα</str>
<str name="spellcheck.q">καρδυα</str>
<str name="qf">
title_short^750 title_full_unstemmed^600 title_full^400 title^500 
title_alt^200 title_new^100 series^50 series2^30 author^300 
author_fuller^150 contents^10 topic_unstemmed^550 topic^500 
geographic^300 genre^300 allfields_unstemmed^10 fulltext_unstemmed^10 
allfields fulltext isbn issn
<str name="spellcheck.dictionary">basicSpell</str>
<str name="">arrarr</str>
<str name="qt">dismax</str>
<str name="wt">xml</str>
<str name="rows">0</str>
<result name="response" numFound="0" start="0" maxScore="0.0"/>
<lst name="spellcheck">
<lst name="suggestions">
<lst name="καρδυ">
<int name="numFound">3</int>
<int name="startOffset">0</int>
<int name="endOffset">6</int>
<int name="origFreq">0</int>
<arr name="suggestion">
<str name="word">καρδ</str>
<int name="freq">5</int>
<str name="word">καρδι</str>
<int name="freq">3</int>
<str name="word">καρυ</str>
<int name="freq">1</int>
<bool name="correctlySpelled">false</bool>

View raw message