On 03/09/2010 15:31, Grant Ingersoll wrote:
On Sep 3, 2010, at 9:14 AM, Xavier Schepler wrote:

On 03/09/2010 14:47, Grant Ingersoll wrote:
On Sep 3, 2010, at 6:02 AM, Xavier Schepler wrote:
no, jopsin isn't in the index.
I tryed this with other words and I had the same error.
Thx for your reply.

And what happens if you drop the accuracy to 0?  Also, please share your 
relevant configuration (spell checker config) and the URL command you are using.

I lowered the accuracy to 0 and restarted the server but I had no extra suggestion.
Here are extracts from my configuration :


- solrconfig :

<searchComponent name="spellcheck" class="solr.SpellCheckComponent">

<str name="queryAnalyzerFieldType">SC</str>

<!-- French spellcheckers : Start -->

<lst name="spellchecker">
<str name="name">qiAndMAndVlFR</str>
<str name="field">qiAndMAndVlSCFR</str>
<str name="distanceMeasure">
          org.apache.lucene.search.spell.JaroWinklerDistance
</str>
<str name="spellcheckIndexDir">./spellchecker_qiAndMAndVlFR</str>
<str name="buildOnOptimize">true</str>
<str name="accuracy">0.6</str>
</lst>


- schema.xml SC type :

<fieldtype name="SC" class="solr.TextField" positionIncrementGap="100" stored="false" multiValued="true">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
</analyzer>
</fieldtype>


- schema.xml qiAndMAndVlFR field :

<field name="qiAndMAndVlSCFR" type="SC"/>

- url command :

&wt=json&omitHeader=true&q=qiAndMAndVlSyFR%3A%28jopsin%29&q.op=AND&start=0&rows=5&fl=id,solrLangCode,ddiFileId,studyDescriptionId,studyYearAndDescriptionId,nesstarServerId,studyNesstarId,variableId,questionId,variableNesstarId,concept,studyTitle,studyQuestionCount,hasMultipleItems,variableName,hasQuestionnaire,questionnaireUrl,studyDescriptionUrl,universe,notes,preQuestionText,postQuestionText,interviewerInstructions,questionPosition,vlFR,qFR,iFR,mFR,vlEN,qEN,iEN,mEN,&sort=score%20desc&fq=solrLangCode%3AFR&fq=solrLangCode%3AFR&fq=solrLangCode%3AFR&fq=solrLangCode%3AFR&facet=true&facet.field=%7B%21ex%3DstudySerieIds%2Cdecades%2CstudyIds%2CqueryFilters%2CconceptIds%7DstudyDecade&facet.field=%7B%21ex%3DstudySerieIds%2Cdecades%2CstudyIds%2CqueryFilters%2CconceptIds%7DstudySerieId&facet.field=%7B%21ex%3DstudySerieIds%2Cdecades%2CstudyIds%2CqueryFilters%2CconceptIds%7DstudyYearAndDescriptionId&facet.sort=lex

&spellcheck=true&spellcheck.count=10&spellcheck.dictionary=qiAndMAndVlFR&spellcheck.q=jopsin

&hl=on&hl.fl=qFR,iFR,mFR,vlFR&hl.fragsize=1&hl.snippets=100&hl.usePhraseHighlighter=true&hl.highlightMultiTerm=true&hl.simple.pre=%3Cb%3E&hl.simple.post=%3C%2Fb%3E&hl.mergeContiguous=false

Regards,

Xavier






Reply via email to