Is there a way you can override accuracy with the html url parameters for testing. i dont want to change config file for each change and bounce server.
Thanks darniz Grant Ingersoll-6 wrote: > > Hmm, as far as I can tell, neither of those should give suggestions, > as they both have edit distances less than 0.70. > > In the Lucene code, I ran the following test against the Levenshtein > Distance: > public void testJava() throws Exception { > float d1 = sd.getDistance("jav", "java"); > System.out.println("di: " + d1); > d1 = sd.getDistance("jav", "javas"); > System.out.println("di: " + d1); > } > > It prints: > di: 0.6666666 > di: 0.3333333 > > > Is "javas"/"java" the only entry in your spellings? > > I presume it does give you the expected suggestion or is it giving you > something else? > > Also, what does your query look like? > > -Grant > > > > On Jan 14, 2009, at 12:33 PM, Navdeep wrote: > >> >> Hi all >> >> The search with an accuracy defined by user in SOLRCONFIG.XML is not >> working >> for me. I have provided an example below. >> Please let me know your valuable suggestion. >> >> For example: >> Accuracy tag is used in Solrconfig.xml file in below manner. >> >> <searchComponent name="spellcheck" class="solr.SpellCheckComponent"> >> <str name="queryAnalyzerFieldType">textSpell</str> >> <lst name="spellchecker"> >> <str name="name">default</str> >> <str name="classname">solr.spelling.FileBasedSpellChecker</str> >> <str name="sourceLocation">./spellings.txt</str> >> <str name="characterEncoding">UTF-8</str> >> <str name="spellcheckIndexDir">./spellcheckerFile</str> >> <str name="accuracy">0.70</str> </lst> >> </searchComponent> >> >> As per above description, the accuracy set to 0.70 which means to 70% >> The keyword ( java ) is stored in spellings.txt file which is also >> mentioned >> above. >> >> Now if I try to make search for "jav" word, there is no result found >> (This >> is the problem, why there is no result ??) >> >> where as >> If I replace (java) keyword with (javas) in spellings.txt file and >> keep the >> accuracy 0.70 ... >> >> Now if I try to make search for "jav" word, I start getting the >> results ... >> >> What is this behaviour ?? Does anyone knows what is the reason ... >> >> Regards, >> Navdeep >> -- >> View this message in context: >> http://www.nabble.com/%3Cstr-name%3D%22accuracy%22%3E0.70%3C-str%3E-%7C%7C-Spell-Checker-Issue-%21%21-tp21460978p21460978.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> > > -------------------------- > Grant Ingersoll > > Lucene Helpful Hints: > http://wiki.apache.org/lucene-java/BasicsOfPerformance > http://wiki.apache.org/lucene-java/LuceneFAQ > > > > > > > > > > > > -- View this message in context: http://old.nabble.com/%3Cstr-name%3D%22accuracy%22%3E0.70%3C-str%3E-%7C%7C-Spell-Checker-Issue-%21%21-tp21460978p27707896.html Sent from the Solr - User mailing list archive at Nabble.com.