Re: Legacy filter strategy in Lucene 6.0

2018-08-16 Thread Adrien Grand
..@thetaphi.de > -Original > Message- > From: alex stark > Sent: Thursday, > August 9, 2018 9:12 AM > To: java-user > > Cc: java-user@lucene.apache.org > Subject: Re: Legacy filter strategy in > Lucene 6.0 > > Thanks Adrien, I want to filter out docs base on

RE: Legacy filter strategy in Lucene 6.0

2018-08-09 Thread alex stark
Schindler Achterdiek 19, D-28357 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: alex stark > Sent: Thursday, August 9, 2018 9:12 AM > To: java-user > Cc: java-user@lucene.apache.org > Subject: Re: Legacy filter strategy in Lucene 6

RE: Legacy filter strategy in Lucene 6.0

2018-08-09 Thread Uwe Schindler
9, D-28357 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: alex stark > Sent: Thursday, August 9, 2018 9:12 AM > To: java-user > Cc: java-user@lucene.apache.org > Subject: Re: Legacy filter strategy in Lucene 6.0 > > Thanks Adrien,

Re: Legacy filter strategy in Lucene 6.0

2018-08-09 Thread alex stark
Thanks Adrien, I want to filter out docs base on conditions which stored in doc values (those conditions are unselective ranges which is not appropriate to put into reverse index), so I plan to use some selective term conditions to do first round search and then filter in second phase.  I see th

Re: Legacy filter strategy in Lucene 6.0

2018-08-08 Thread Adrien Grand
Hi Alex, These strategies still exist internally, but BooleanQuery decides which one to use automatically based on the cost API (cheaper clauses run first) and whether sub clauses produce bitset-based or postings-based iterators. Le mer. 8 août 2018 à 09:46, alex stark a écrit : > As FilteredQu

Legacy filter strategy in Lucene 6.0

2018-08-08 Thread alex stark
As FilteredQuery are removed in Lucene 6.0, we should use boolean query to do the filtering. How about the legacy filter strategy such as LEAP_FROG_FILTER_FIRST_STRATEGY or QUERY_FIRST_FILTER_STRATEGY? What is the current filter strategy?  Thanks,

Re: Filter strategy in Lucene 6.0

2016-08-03 Thread Adrien Grand
You can read about the inception of the feature at https://issues.apache.org/jira/browse/LUCENE-6198 and since two-phase iteration is mostly useful for conjunctions, you could look at ConjunctionDISI which is the class that takes care of intersecting multiple iterators. I am afraid there is not muc

Re: Filter strategy in Lucene 6.0

2016-08-03 Thread Parit Bansal
Hi, Could you point to some resource where I can read about two-phase iterators in slightly more depth? There are still confusions for me as to how exactly it works. - Best Parit On 08/02/2016 07:07 PM, Andres de la Peña wrote: Thanks Adrien, this is very helpful. I have just read your blo

Re: Filter strategy in Lucene 6.0

2016-08-02 Thread Andres de la Peña
Thanks Adrien, this is very helpful. I have just read your blog post about this , the two-phase iteration is really cool! 2016-07-31 20:17 GMT+01:00 Adrien Grand : > Lucene 5.0 introduced two-phase iteration > (see Scor

Re: Filter strategy in Lucene 6.0

2016-07-31 Thread Adrien Grand
Lucene 5.0 introduced two-phase iteration (see Scorer.twoPhaseIterator()) as a way to tackle slow queries. In short, queries can be split into a fast approximation and a slower confirmation and Lucene makes sure to reach agreement between the different approximations of a BooleanQuery before checki

Filter strategy in Lucene 6.0

2016-07-22 Thread Andres de la Peña
Hi all, Suppose that we have a boolean query composed by two filtering queries, where one of them is fast and the other is slow: BooleanQuery.Builder builder = new BooleanQuery.Builder(); builder.add(fastQuery, FILTER); builder.add(slowQuery, FILTER); Query query = builder.build(); How is the i