[prev in list] [next in list] [prev in thread] [next in thread] 

List:       solr-user
Subject:    Re: How to copyFeild to reverse string in another field
From:       Chris Hostetter <hossman_lucene () fucit ! org>
Date:       2009-06-30 22:20:18
Message-ID: Pine.LNX.4.64.0906301518270.1447 () radix ! cryptio ! net
[Download RAW message or body]


: 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic