Hi Ahmet, Yes, for display purpose. Okay, so I don't have to copy fields then.
Thank you very much. R On Fri, Aug 28, 2009 at 4:57 AM, AHMET ARSLAN <iori...@yahoo.com> wrote: > > > --- On Thu, 8/27/09, Rihaed Tan <tanrihae...@gmail.com> wrote: > > > From: Rihaed Tan <tanrihae...@gmail.com> > > Subject: Case insensitive search and original string > > To: solr-user@lucene.apache.org > > Date: Thursday, August 27, 2009, 10:10 PM > > Hi, > > Totally a Solr newbie here. The docs and list have been > > helpful but I have a > > question on lowercase / case insensitive search. Do you > > really need to have > > another field (copied or not) to retain the original casing > > of a field? > > > > So let's say I have a field with a type that is lowercased > > during index and > > query time, where can I pull out the original string > > (non-lowercased) from > > the response? Should copyfield be used? > > > > Thanks, > > R > > > > Are you asking for displaying purpose? If yes by default Solr gives you > original string of a field in the response. Stemming, lowercasing, etc do > not effect this behaviour. You can allways display original documents to the > users. > > If you want to capture original words -that matched the query terms- from > original documents, then use highlighting. ( &hl=true&hl.fragsize=0 ) You > will find those words between <em> </em> tags in the response. > > > >