RE: lucene-4.0: QueryWrapperFilter & docBase

2012-10-08 Thread Uwe Schindler
> >> I would recommend to *not* use QueryWrapperFilter and instead wrap with > ConstantScoreQuery and add it to the query as a Boolean MUST clause. In that > case it should work fine. There is no performance increase by using > QueryWrapperFilter, so no reason to use it. > > > > It's important for

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: lucene-4.0: QueryWrapperFilter & docBase

2012-10-08 Thread Thomas Matthijs
On Mon, Oct 8, 2012 at 2:29 PM, Thomas Matthijs wrote: > On Mon, Oct 8, 2012 at 11:28 AM, Uwe Schindler wrote: >> Hi, >> >> This is a known problem currently. I think there is already an issue open, >> so this was not solved for 4.0 (I don't have the issue no available at the >> moment). >> >>

Re: lucene-4.0: QueryWrapperFilter & docBase

2012-10-08 Thread Thomas Matthijs
On Mon, Oct 8, 2012 at 11:28 AM, Uwe Schindler wrote: > Hi, > > This is a known problem currently. I think there is already an issue open, so > this was not solved for 4.0 (I don't have the issue no available at the > moment). > > My plan to fix this is to make Filters behave like queries (with

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: lucene-4.0: QueryWrapperFilter & docBase

2012-10-08 Thread Thomas Matthijs
On Mon, Oct 8, 2012 at 11:28 AM, Uwe Schindler wrote: > Hi, > > This is a known problem currently. I think there is already an issue open, so > this was not solved for 4.0 (I don't have the issue no available at the > moment). > > My plan to fix this is to make Filters behave like queries (with

RE: lucene-4.0: QueryWrapperFilter & docBase

2012-10-08 Thread Uwe Schindler
Hi, This is a known problem currently. I think there is already an issue open, so this was not solved for 4.0 (I don't have the issue no available at the moment). My plan to fix this is to make Filters behave like queries (with a rewrite() method), so the correct context can be passed to a "rew

lucene-4.0: QueryWrapperFilter & docBase

2012-10-08 Thread Thomas Matthijs
Hello, I have some custom queries & scorer that need to able to construct the "global" docIds (doc + docBase). But when i use these in a QueryWrapperFilter they no longer work, because QueryWrapperFilter.getDocIdSet uses a "private context" (context.reader().getContext();) which always has a docB

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