Solr Spell checker Filter query -


i trying build spell checker on top of solr. basic information looks enough http://wiki.apache.org/solr/spellcheckcomponent#introduction

can somehow limit scope of spell checker specific query. e.g want spell checker correct spelling genre=international. (genre text field defined in schema.xml)

edit

to make question more precise: how can filter query spell checker component. fq=genre:music&query=jacksn

then spell corrector should document have genre:music

do want restrict dictionary building single field? if can modify solrconfig.xml , set dictionary source "genre" field:

<searchcomponent name="spellcheck" class="solr.spellcheckcomponent">    <lst name="spellchecker">     <str name="name">default</str>     <str name="classname">solr.indexbasedspellchecker</str>     <str name="field">genre</str> 

edit: have multiple countries , have different products on each country. might more practical split each country own core using technique called sharding , way can configure modules in each core.

have read: http://wiki.apache.org/solr/coreadmin


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -