Re: Apache Lucene Analysis

2012-10-08 Thread selvakumar netaji
Thanks Mike. On Mon, Oct 8, 2012 at 4:30 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > On Fri, Oct 5, 2012 at 10:24 AM, selvakumar netaji > wrote: > > Hi All, > > > > > > In the TokenStreamAPI section of the analysis documentation for lucene > 4.0 > > beta, MyAnalyzer class is de

Re: Apache Lucene Analysis

2012-10-08 Thread Michael McCandless
On Fri, Oct 5, 2012 at 10:24 AM, selvakumar netaji wrote: > Hi All, > > > In the TokenStreamAPI section of the analysis documentation for lucene 4.0 > beta, MyAnalyzer class is defined. > > They've added the lengthFilter in the create components method. The length > filter doesn't accept method w

Re: Apache Lucene Analysis

2012-10-08 Thread Michael McCandless
That is correct ... it should be: OffsetAttribute offsetAtt = ts.addAttribute(OffsetAttribute.class); I'll fix the javadocs (for 4.1) ... thanks for raising! Mike McCandless http://blog.mikemccandless.com On Fri, Oct 5, 2012 at 7:40 AM, selvakumar netaji wrote: > Actually I'm getting resu

Re: Apache Lucene Analysis

2012-10-08 Thread selvakumar netaji
Can you please help me to sort this out. On Fri, Oct 5, 2012 at 7:54 PM, selvakumar netaji wrote: > Hi All, > > > In the TokenStreamAPI section of the analysis documentation for lucene > 4.0 beta, MyAnalyzer class is defined. > > They've added the lengthFilter in the create components method. Th

Re: Apache Lucene Analysis

2012-10-05 Thread selvakumar netaji
Hi All, In the TokenStreamAPI section of the analysis documentation for lucene 4.0 beta, MyAnalyzer class is defined. They've added the lengthFilter in the create components method. The length filter doesn't accept method with three arguments in 4.0. Should I create a length filter class for th

Re: Apache Lucene Analysis

2012-10-05 Thread selvakumar netaji
Actually I'm getting results if I add it to the tokenStream instance. Can you please inform is it right? Thanks in advance. On Fri, Oct 5, 2012 at 5:02 PM, selvakumar netaji wrote: > Hi All, > > > I'm reading the docs of Apache Lucene. > > I just read through the docs of the analyser > docs/