Tokenizer changes the behavior of how you search/index and not how you store. What i understand is you want to display tokenized result always and not just for debug purpose.
debugQuery has performance implications that should not be used for what you are trying to achieve. Basically, what you need is a way to store filtered and lowercased tokens in the 'modified' field. What I see as a solution is either you ingest 'original' field with your desired tokens directly instead of using copyfield or write some custom code to store/index only the filtered and lowercased result eg. custom transformer can be explored if you are using data import handler. On Mon, Jan 21, 2013 at 1:47 PM, Romita Saha <romita.s...@sg.panasonic.com>wrote: > Hi, > > I have a field defined in scheme.xml named as 'original'. I first copy > this field to "modified" and apply filters on this field "modified." > > field name="original" type="string" indexed="true" stored="true"/> > field name="modified" type="text_general" indexed="true" stored="true"/> > > <copyField source="original" dest="modified"/> > > I want to display in my <response>as follows: > > original: Search for all the Laptops > modified: search laptop > > Thanks and regards, > Romita Saha > > Panasonic R&D Center Singapore > Blk 1022 Tai Seng Avenue #06-3530 > Tai Seng Ind. Est. Singapore 534415 > DID: (65) 6550 5383 FAX: (65) 6550 5459 > email: romita.s...@sg.panasonic.com > > > > From: Mikhail Khludnev <mkhlud...@griddynamics.com> > To: solr-user@lucene.apache.org, > Date: 01/21/2013 03:48 PM > Subject: Re: Tokenized keywords > > > > Romita, > That's what exactly is shown debugQuery output. If you cant find it there, > paste output here, let's try to find together. Also pay attention to > explainOther debug parameter and analisys page in admin ui. > 21.01.2013 10:50 пользователь "Romita Saha" <romita.s...@sg.panasonic.com> > написал: > > > What I am trying to achieve is as follows. > > > > I query "Search for all the Laptops" and my tokenized key words are > > "search laptop" (I apply stopword filter to filter out words like > > for,all,the and i also user lowercase filter). > > I want to display these tokenized keywords using debugQuery. > > > > Thanks and regards, > > Romita > > > > > > > > From: Dikchant Sahi <contacts...@gmail.com> > > To: solr-user@lucene.apache.org, > > Date: 01/21/2013 02:26 PM > > Subject: Re: Tokenized keywords > > > > > > > > Can you please elaborate a more on what you are trying to achieve. > > > > Tokenizers work on indexed field and doesn't effect how the values will > be > > displayed. The response value comes from stored field. If you want to > see > > how your query is being tokenized, you can do it using analysis > interface > > or enable debugQuery to see how your query is being formed. > > > > > > On Mon, Jan 21, 2013 at 11:06 AM, Romita Saha > > <romita.s...@sg.panasonic.com>wrote > > > > > Hi, > > > > > > I use some tokenizers to tokenize the query. I want to see the > tokenized > > > query words displayed in the <response>.Could you kindly help me do > > that. > > > > > > Thanks and regards, > > > Romita > > > > > > >