spelling correction work incorrect words in search box like,
"contempory","singar","dancar", etc.
for gives correct spellings like,
"contemporary","singer","dancer", etc.
but when search,
"contempory singer"
it gives results correct word "singer" , not gives spelling suggestions "contempory".
but when both words incorrect like,
"contempory singar"
it gives results.
what sentence correction have single incorrect word ??
i pasting "/select" request handler here
<requesthandler name="/select" class="solr.searchhandler"> <lst name="defaults"> <str name="wt">json</str> <int name="rows">10</int> <str name="deftype">edismax</str> <str name="qf">attributes^50 talent_name_1^60 talent_name_2^20 nofyears^60 living_city_name^30 specialization_name^60 specification_name^60</str> <str name="tie">0.1</str> <str name="sort">score desc, createdate desc</str> <!-- solr use suggestions both 'default' spellchecker , 'wordbreak' spellchecker , combine them. collations (re-written queries) can include combination of corrections both spellcheckers --> <!-- spellcheckers defaults --> <str name="spellcheck.dictionary">default</str> <str name="spellcheck.dictionary">wordbreak</str> <str name="spellcheck">on</str> <str name="spellcheck.extendedresults">true</str> <str name="spellcheck.count">10</str> <str name="spellcheck.alternativetermcount">5</str> <str name="spellcheck.maxresultsforsuggest">0</str> <str name="spellcheck.collate">true</str> <str name="spellcheck.collateextendedresults">true</str> <str name="spellcheck.maxcollationtries">10</str> <str name="spellcheck.maxcollations">1</str> <!-- faceting defaults --> <str name="facet">on</str> <str name="facet.sort">index</str> <str name="facet.field">talent_name</str> <str name="facet.field">living_city_name</str> <str name="facet.field">fresherorexperience</str> <str name="facet.field">talent_exp</str> <str name="facet.field">talent_exp_hash</str> <str name="facet.field">talent_type_1</str> <str name="facet.field">talent_type_2</str> <str name="facet.field">skin_color</str> <str name="facet.field">skin_type</str> <str name="facet.field">weight</str> <str name="facet.field">wrinkles_on</str> <str name="facet.field">hair_color</str> <str name="facet.field">hair_type</str> <str name="facet.field">hair_length</str> <str name="facet.field">height_feet_underscore</str> <str name="facet.field">physique</str> <str name="facet.field">eye_color</str> <str name="facet.field">eye_shape</str> <str name="facet.field">ear_types</str> <str name="facet.field">nose_type</str> <str name="facet.field">lips_type</str> <str name="facet.field">cheek_shape</str> <str name="facet.pivot">talent_id_1,specialization_name_1_underscore</str> <str name="facet.pivot">talent_id_2,specialization_name_2_underscore</str> <str name="facet.pivot">talent_id_3,specialization_name_3_underscore</str> <str name="facet.pivot">talent_id_4,specialization_name_4_underscore</str> <str name="facet.pivot">talent_id_5,specialization_name_5_underscore</str> <str name="facet.pivot">talent_id_6,specialization_name_6_underscore</str> <str name="facet.pivot">talent_id_7,specialization_name_7_underscore</str> <str name="facet.pivot">talent_id_8,specialization_name_8_underscore</str> <str name="facet.field">gender</str> <str name="facet.range.other">after</str> <str name="facet.range">age</str> <int name="f.age.facet.range.start">0</int> <int name="f.age.facet.range.end">90</int> <int name="f.age.facet.range.gap">15</int> </lst> <arr name="last-components"> <str>spellcheck</str> </arr> </requesthandler>
thank you
Comments
Post a Comment