You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ilanh <il...@gmail.com> on 2012/05/20 15:03:49 UTC
RE: spellcheck on multiple fields?
It is possible to do spellcheck on multiple fields in Apache's solr index.
In order to configure Solr spellcheck to use words from several fields you
should:
<ol>
<li> Declare a new field. Dont forget t specify the properties:
type="textSpell" and multiValued="true". For example:
<field name="MyField" type="textSpell" indexed="true"
multiValued="true"/>.</li>
<li> Use copyField to get multiple fields in the field you use for spell
checking. For example:
<copyField source="firstField" dest="MyField"/>
<copyField source="secondField" dest="MyField"/>.</li>
<li> Configure Solr to use the new field. Do it by set the field name to
use your spellcheck field name. For example: <str
name="field">MyField</str>.</li>
</ol>
For more and detailed information visit
http://www.rndblog.com/solr-spellcheck-compound-from-several-fields/ Solr
spellcheck compound from several fields
--
View this message in context: http://lucene.472066.n3.nabble.com/spellcheck-on-multiple-fields-tp1587327p3984955.html
Sent from the Solr - User mailing list archive at Nabble.com.