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 Chris Hostetter <ho...@fucit.org> on 2009/07/01 00:20:18 UTC

Re: How to copyFeild to reverse string in another field

: Date: Thu, 11 Jun 2009 14:02:48 +0700
: From: chem leakhina
: Subject: How to copyFeild to reverse string in another field

I'm not sure if you figured this out yet (i didn't see any answers so far) 
but you can use the ReverseStringFilterFactory in the "index" analyzer for 
the dest field of your copyField command.

that will *index* the reverse text so you can search on it, but hte stored 
value will remain the same.  If you want to store a differnet value, 
you'll need to preprocess the string

: How can I use copyField to copy field that contains normal text to another
: field and that field contains as reversed text?


-Hoss