Hi

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 ??

Regars,
Harry



here is the complete solr responce
---------------------------------------------------
<response>
<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>
<str name="spellcheck.dictionary">basicSpell</str>
<str name="json.nl">arrarr</str>
<str name="qt">dismax</str>
<str name="wt">xml</str>
<str name="rows">0</str>
</lst>
</lst>
<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">
<lst>
<str name="word">καρδ</str>
<int name="freq">5</int>
</lst>
<lst>
<str name="word">καρδι</str>
<int name="freq">3</int>
</lst>
<lst>
<str name="word">καρυ</str>
<int name="freq">1</int>
</lst>
</arr>
</lst>
<bool name="correctlySpelled">false</bool>
</lst>
</lst>
</response>

Reply via email to