lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Villemos, Gert" <>
Subject RE: SpellChecking
Date Mon, 03 May 2010 14:36:18 GMT
We are using copy fields for 40+ fields to do spelling, and it works

Are you sure that you actually build the spell index before you try to
do spelling? You need to either configure SOLr to build spell index on
commit, or manually issue a spell index build request.


-----Original Message-----
From: Jan Kammer [] 
Sent: Montag, 3. Mai 2010 16:26
Subject: Re: SpellChecking


if I define one of my normal fields from schema.xml in solrconfig.xml 
for spellchecking all works fine:
<lst name="spellchecker">
<str name="field>content</str>

  But i want to use spellcheck for much more fields. So I tried to 
define in schema.xml a copyfield like this:

<copyField source="*" dest="spell"/>
That didnt work, because nothing was in "spell" after that.

Next try was to copy each field in a line to "spell":
<copyField source="content" dest="spell"/>
<copyField source="name" dest="spell"/>
<copyField source="title" dest="spell"/>
This does work up to 3 documents, if i define more, the count for failed

documents in dataimporthandler gets higher and higher the more i copy 
into "spell".
<str name="Total Documents Failed">16444</str>

So my question is, if this is the right way to use the spellchecker with

many fields, or is there an other "better" way...


greetz, Jan

Am 03.05.2010 16:08, schrieb Erick Erickson:
> It would help a lot to see your actual config file, and if you
provided a
> bit more
> detail about what failure looks like....
> Best
> Erick
> On Mon, May 3, 2010 at 9:43 AM, Jan
>> Hi there,
>> I want to enable spellchecking, but i got many fields.
>> I tried around with copyfield to copy all with "*" in one field, but
>> didnt work.
>> Next try was to copy some fields specified each by name in one field
>> "spell", but that worked only for 2 or 3 fields, but not for 10 or
>> My question is, what the best practice is to enable spellchecking on
>> fields.
>> thanks.
>> greetz, Jan

Please help Logica to respect the environment by not printing this email  / Pour contribuer
comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken
Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /  Por
favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal privilege.
It should not be copied, disclosed to, retained or used by, any other party. If you are not
an intended recipient then please promptly delete this e-mail and any attachment and all copies
and inform the sender. Thank you.

View raw message