Thanks Ahmet that worked Can anybody help me here to how should i start to develop and learn the solr internals, so that i can make these custom solr developments efficiently with proper understanding for all these classes.
With Regards Aman Tandon On Wed, Jun 4, 2014 at 1:30 PM, Ahmet Arslan <iori...@yahoo.com> wrote: > Hi Aman, > > What you see is normal. If you want to convert it to a string use > > this.termAttribute.toString(); > > Please see source code of > org.apache.lucene.analysis.br.BrazilianStemFilter for an example. > > > Ahmet > > > > On Wednesday, June 4, 2014 10:21 AM, Aman Tandon <amantandon...@gmail.com> > wrote: > Hi, > > I am new in solr and i am trying to create the custom filter, to create > that filter i just copied the lowercasefilter and making all the changes in > the increment token, but to make sure that my changes are applying > properly, i am also printing some debugging info in log. > > public final boolean incrementToken() throws IOException > { > if (this.input.incrementToken()) { > > char[] inputChar = this.termAtt.buffer(); > > System.err.println("Token is "+new String(inputChar)); > > return true; > } > return false; > } > > eg: Field Value: spellcheck for bags > > recieved : spellcheck for bags as expected. > > but when i am converting it into string i am getting unexpected results in > logs. > > Token is spellcheck > Token is forllcheck > Token is bagslcheck > Token is spellcheck > Token is forllcheck > Token is bagslcheck > > Please help me here. > > > With Regards > Aman Tandon > >