Re: Filter and FilteredQuery replacements

2022-07-11 Thread Mikhail Khludnev
7;ve looked at the migration guide for Lucene 6 > <https://lucene.apache.org/core/6_5_1/MIGRATE.html> and javadocs and I'm > just not understanding the intended path to migrate away from using Filter > and FilteredQuery. In the migration guide I see: > Removal of Filter and FilteredQ

Filter and FilteredQuery replacements

2022-07-11 Thread Scotter
just not understanding the intended path to migrate away from using Filter and FilteredQuery. In the migration guide I see: Removal of Filter and FilteredQuery (LUCENE-6301 <https://issues.apache.org/jira/browse/LUCENE-6301>,LUCENE-6583 <https://issues.apache.org/jira/browse/LUCENE-6583>

Re: FilteredQuery returning entire index

2012-07-17 Thread James Nolan
> filter to an executed query. I instantiate (sorry if my lexicon is off) a > FilteredQuery and pass my filter and the boolean query to the constructor. > What I think should happen is that the FilteredQuery applies a filter to > the results of the BooleanQuery. If this isn't happe

Re: FilteredQuery returning entire index

2012-07-13 Thread James Nolan
Thanks for the heads up. I was using org.apache.lucene.search.FilteredQuery which says it applies a filter to an executed query. I instantiate (sorry if my lexicon is off) a FilteredQuery and pass my filter and the boolean query to the constructor. What I think should happen is that the

RE: FilteredQuery returning entire index

2012-07-13 Thread Uwe Schindler
il: u...@thetaphi.de > -Original Message- > From: James Nolan [mailto:nolansolrlistse...@gmail.com] > Sent: Friday, July 13, 2012 7:26 PM > To: java-user@lucene.apache.org > Subject: FilteredQuery returning entire index > > Hello All! > > I'm trying to run a Filt

Re: SpanQuery and FilteredQuery

2008-08-26 Thread Eran Sevi
etSpans. I have a Filter I can apply if I just search with > the query, but I don't see a way to apply the filter and still use the > getSpans method. I thought maybe FilteredQuery looked promising, but of > course if I wrap my SpanQuery and Filter in a FilteredQuery, getSpans is

Re: FilteredQuery

2008-08-25 Thread Otis Gospodnetic
al Message > From: German Kondolf <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Monday, August 25, 2008 4:58:00 PM > Subject: Re: FilteredQuery > > Exactly as Otis sais, you should use MatchAllDocs as query, but it has a > drawback in performance, it checks

Re: FilteredQuery

2008-08-25 Thread German Kondolf
AllDocs query? > > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > > - Original Message > > From: Heiko <[EMAIL PROTECTED]> > > To: java-user@lucene.apache.org > > Sent: Monday, August 25, 2008 11:29:22 AM > &

Re: FilteredQuery

2008-08-25 Thread Otis Gospodnetic
lucene.apache.org > Sent: Monday, August 25, 2008 11:29:22 AM > Subject: FilteredQuery > > Hi All, > > i would like to use the FilteredQuery to filter my search results with > the occurrence or absence of certain ids. > > Example A: > query -> text:"albert einstei

SpanQuery and FilteredQuery

2008-08-25 Thread Christopher M Collins
ust search with the query, but I don't see a way to apply the filter and still use the getSpans method. I thought maybe FilteredQuery looked promising, but of course if I wrap my SpanQuery and Filter in a FilteredQuery, getSpans is no longer available. Any suggestions?

FilteredQuery

2008-08-25 Thread Heiko
Hi All, i would like to use the FilteredQuery to filter my search results with the occurrence or absence of certain ids. Example A: query -> text:"albert einstein" filterQuery -> doctype:letter That's ok. I am getting the expected results. But i got no results, if i filte

Re: FilteredQuery usage

2005-10-26 Thread Chris Hostetter
: filter, I need to query all the index checking if the value of field : name "path" is a prefix or not. : : There's a way to do that query without having to retrieve all the : Document instances from the index? Yep, you're definitely on the right track. You don't need to retrieve any documents a

FilteredQuery usage

2005-10-26 Thread Ricardo Borillo Domenech
Hi all!! I'm using PrefixQuery in my search application and I get TooManyClauses. I have found many information about this problem and the solutions seems to be the use of a FilteredQuery. Now, I'm trying to write my Filter ... Well, the problem is that when i try to write the "bi

RE: FilteredQuery and Boolean AND

2005-04-27 Thread Kipping, Peter
least, the testcase i submitted now passes. if you could ammend my test case with more examples of the types of complex combinations of FilteredQuery/BooleanQuery that you've seen fail (or add a new testcase file that works in a similar way, against a self contained RAMDirectory based index) i

RE: FilteredQuery and Boolean AND

2005-04-06 Thread Chris Hostetter
e -- or at least, the testcase i submitted now passes. if you could ammend my test case with more examples of the types of complex combinations of FilteredQuery/BooleanQuery that you've seen fail (or add a new testcase file that works in a similar way, against a self contained RAMDirectory

RE: FilteredQuery and Boolean AND

2005-04-04 Thread Kipping, Peter
riginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Hostetter Sent: Friday, April 01, 2005 7:53 PM To: java-user@lucene.apache.org Subject: Re: FilteredQuery and Boolean AND Peter's problem intrigued me, so I wrote my own test case using two simple Filters

Re: FilteredQuery and Boolean AND

2005-04-03 Thread Chris Hostetter
Bugged... http://issues.apache.org/bugzilla/show_bug.cgi?id=34279 : : > BooleanQuery q2 = new BooleanQuery(); : : > TermQuery tq = new TermQuery(new Term("all_entries", "y")); : : > FilteredQuery fq = new FilteredQuery(tq, ft); : : > FilteredQuery fq2 = new Filt

Re: FilteredQuery and Boolean AND

2005-04-01 Thread Chris Hostetter
airly inefficinent way of approaching hte problem in general, instead of: BooleanQuery containing: a) FilteredQuery wrapping: Query for "all" -- filtered by -- RangeFilter #1 b) FilteredQuery wrapping: Query for "all" -- filtered by -- RangeFilter #2 ...it

Re: FilteredQuery and Boolean AND

2005-04-01 Thread Erik Hatcher
ks. Although it may work since the book only has one filtered query, but what if you made them both filtered queries and ANDed them? Thanks, Peter -Original Message- From: Kipping, Peter [mailto:[EMAIL PROTECTED] Sent: Friday, March 25, 2005 10:34 AM To: java-user@lucene.apache.org Subjec

RE: FilteredQuery and Boolean AND

2005-04-01 Thread Kipping, Peter
the book only has one filtered query, but what if you made them both filtered queries and ANDed them? Thanks, Peter -Original Message- From: Kipping, Peter [mailto:[EMAIL PROTECTED] Sent: Friday, March 25, 2005 10:34 AM To: java-user@lucene.apache.org Subject: FilteredQuery and Boolean AND

FilteredQuery and Boolean AND

2005-03-25 Thread Kipping, Peter
I have the following query structure: BooleanQuery q2 = new BooleanQuery(); TermQuery tq = new TermQuery(new Term("all_entries", "y")); FilteredQuery fq = new FilteredQuery(tq, ft); FilteredQuery fq2 = new FilteredQuery(tq, ft2); q2.add(fq, false, false); q2.add(fq2, fal