Re: Question on wildcard queries, filters, scoring and TooManyClauses exception

2013-08-21 Thread Duke DAI
N_QUERY_REWRITE); Query prefixQuery = queryParser.parse("t*"); indexSearcher.search(prefixQuery, collector); MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE will populate terms into BooleanQuery(default 1024? to hit TooManyClauses exception), you can set a big enough one by calling BooleanQu

RE: Question on wildcard queries, filters, scoring and TooManyClauses exception

2013-08-16 Thread Bill Chesky
t; > I know this is a perennial question here because I've spent a lot of time > searching for an answer. I've seen the discussions about the TooManyClauses > exception and I understand generally why you get the it. I see lots of > discussion about using filters to avoid it but I

Re: Question on wildcard queries, filters, scoring and TooManyClauses exception

2013-08-16 Thread Ian Lea
rote: > Hello, > > I know this is a perennial question here because I've spent a lot of time > searching for an answer. I've seen the discussions about the TooManyClauses > exception and I understand generally why you get the it. I see lots of > discussion about using

Question on wildcard queries, filters, scoring and TooManyClauses exception

2013-08-15 Thread Bill Chesky
Hello, I know this is a perennial question here because I've spent a lot of time searching for an answer. I've seen the discussions about the TooManyClauses exception and I understand generally why you get the it. I see lots of discussion about using filters to avoid it but I still

Re: WildCardQuery: TooManyClauses Exception

2013-04-18 Thread Arun Kumar K
gt; - > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > > -Original Message- > > From: Arun Kumar K [mailto:arunk...@gmail.com] > > Sent: Thursday, April 18, 2013 12:41 PM > > To: java-

RE: WildCardQuery: TooManyClauses Exception

2013-04-18 Thread Uwe Schindler
> -Original Message- > From: Arun Kumar K [mailto:arunk...@gmail.com] > Sent: Thursday, April 18, 2013 12:41 PM > To: java-user > Subject: WildCardQuery: TooManyClauses Exception > > Hi Guys, > > I am using following queries: > 1>WildCardQuery > 2>BooleanQue

WildCardQuery: TooManyClauses Exception

2013-04-18 Thread Arun Kumar K
Hi Guys, I am using following queries: 1>WildCardQuery 2>BooleanQuery having a WildCardQuery and TermQuery. WildCardQuery is field:* or say field:ab* >From Lucene FAQs and earlier discussions about TooManyClausesException i see that WildCardQuery gets expanded before doing search. For that i was

Re: substring indexing to avoid 'TooManyClauses' exception

2007-11-14 Thread Erick Erickson
Hardy: Since your use-case is so restricted, I'd recommend that you just construct a filter. I think you'll find it's much faster than you'd think at first glance. Of course, "Your mileage may vary" Is there any equivalent phrase like "Your kilometerage may vary" ? Most of the discussion in the a

Re: substring indexing to avoid 'TooManyClauses' exception

2007-11-14 Thread Hardy Ferentschik
On Tue, 13 Nov 2007 16:12:26 +0100, Erick Erickson <[EMAIL PROTECTED]> wrote: Thanks for your help. I'm certainly not an expert on ranking and scoring, but I've got to assume that this approach influences scoring. No doubt. The question is if it matters for this particular use case. For th

Re: substring indexing to avoid 'TooManyClauses' exception

2007-11-13 Thread Erick Erickson
many clauses" error and responding with a message of "your search is too broad to be useful" is reasonable. Best Erick On Nov 12, 2007 4:44 PM, Hardy Ferentschik <[EMAIL PROTECTED]> wrote: > Hi, > > I have a question regarding the way I got around the 'TooManyClaus

substring indexing to avoid 'TooManyClauses' exception

2007-11-12 Thread Hardy Ferentschik
Hi, I have a question regarding the way I got around the 'TooManyClauses' exception when using wild card queries (http://wiki.apache.org/lucene-java/LuceneFAQ#head-06fafb5d19e786a50fb3dfb8821a6af9f37aa831). I am using Lucene in conjunction with Hibernate Search (http://www.hib

Re: toomanyclauses exception

2006-12-27 Thread Paul Elschot
On Wednesday 27 December 2006 16:53, Erick Erickson wrote: ... > 3> Look over the SrndQuery classes. I don't fully understand these, but they > certainly behave much differently in this area. Note that SrndQuery limits > wildcards to having at least three non-wildcard characters. In Lucene, the li

Re: toomanyclauses exception

2006-12-27 Thread Erick Erickson
1024, you see a TooManyClauses exception. Expanding the number of clauses *may* fix you right up, but on any reasonably sized index, you can come up with a query that'll exceed whatever number you set. Or you'll get to an unacceptable performance/memory footprint. Imagine your query w

Re: toomanyclauses exception

2006-12-27 Thread Paul Elschot
Chris, On Wednesday 27 December 2006 15:42, Chris Salem wrote: > Hi All, > > I'm getting a 'TooManyClauses' Exception and I'm not sure how to fix this. Here's a sample query that I'm using: > > +(+freeform_text:exhibit* +(+freeform_text:dispaly

toomanyclauses exception

2006-12-27 Thread Chris Salem
Hi All, I'm getting a 'TooManyClauses' Exception and I'm not sure how to fix this. Here's a sample query that I'm using: +(+freeform_text:exhibit* +(+freeform_text:dispaly +freeform_text:event*) +(+freeform_text:sale* +freeform_text:sells +freeform_text:dev

Re: TooManyClauses exception in Lucene (1.4)

2006-03-17 Thread Erik Hatcher
On Mar 17, 2006, at 6:15 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: Thanks to everyone for the explanation. Given that RangeQuery is clearly unsuitable for out requirements, ConstantScoreRangeQuery looks ideal. However, we're building our queries (at the moment) using QueryParser. I

RE: TooManyClauses exception in Lucene (1.4)

2006-03-17 Thread Tim.Wright
ad of a RangeQuery? Cheers, Tim. -Original Message- From: Yonik Seeley [mailto:[EMAIL PROTECTED] Sent: 16 March 2006 18:04 To: java-user@lucene.apache.org Subject: Re: TooManyClauses exception in Lucene (1.4) On 3/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I ha

Re: TooManyClauses exception in Lucene (1.4)

2006-03-16 Thread Erick Erickson
Thanks very much for your reply, I appreciate you taking the time. Erick

RE: TooManyClauses exception in Lucene (1.4)

2006-03-16 Thread Pasha Bizhan
Hi, > From: Doug Cutting [mailto:[EMAIL PROTECTED] > > The primary advantage of a RangeQuery is that the ranking > incorporates the degree of match of each term in the range, > which may be useful for wildcard-like searches but is useless > for date-like searches. Also, RangeQuery allows to

Re: TooManyClauses exception in Lucene (1.4)

2006-03-16 Thread Doug Cutting
Erick Erickson wrote: Could you point me to any explanation of *why* range queries expand this way? It's just what they do. They were contributed a long time ago, before things like RangeFilter or ConstantScoreRangeQuery were written. The latter are relatively recent additions to Lucene and

Re: TooManyClauses exception in Lucene (1.4)

2006-03-16 Thread Erick Erickson
When I read LIA, I was struck by this issue, and it seemed...er...like an easy mistake to make. Given that my impression of Lucene is that it's extraordinarily well designed, I assume that there must be a good reason for expanding range queries this way. Could you point me to any explanation of *w

Re: TooManyClauses exception in Lucene (1.4)

2006-03-16 Thread Yonik Seeley
On 3/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I had no idea that rangequery worked by enumerating every > possible value, that's terrifying. You could use either a RangeFilter or a ConstantScoreRangeQuery -Yonik http://incubator.apache.org/solr Solr, The Open Source Lucene Search Ser

RE: TooManyClauses exception in Lucene (1.4)

2006-03-16 Thread Tim.Wright
ery for "2005-01-" to catch an entire month in one query, etc? Cheers, Tim. -Original Message- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] Sent: 16 March 2006 17:26 To: java-user@lucene.apache.org Subject: Re: TooManyClauses exception in Lucene (1.4) Tim, This is possi

Re: TooManyClauses exception in Lucene (1.4)

2006-03-16 Thread Otis Gospodnetic
ay, March 16, 2006 11:34:29 AM Subject: TooManyClauses exception in Lucene (1.4) Hi, We're using queryparser to generate my queries (not ideal, and we're planning on rewriting it, but at the moment we don't have the resources to do so). We have a default field "text" wh

TooManyClauses exception in Lucene (1.4)

2006-03-16 Thread Tim.Wright
Hi, We're using queryparser to generate my queries (not ideal, and we're planning on rewriting it, but at the moment we don't have the resources to do so). We have a default field "text" which contains all of our text fields, and a "date" field which is just a string field in the format -MM-

RE: Boolean Query - TooManyClauses Exception

2005-05-20 Thread Jayakumar.V
Thanks for the link. I had overlooked the fact that RangeQuery expands to a sequence of term queries and throws an exception when 1024 is reached. By setting the BooleanQuery.setMaxClauseCount() to the required value, I was able to avoid the TooManyClauses exception. But, as mentioned in the

Re: Boolean Query - TooManyClauses Exception

2005-05-20 Thread John Wang
t; > I'm getting a TooManyClauses Exception when I try to query for a particular > date range. > > I've around 4 million documents with 21 fields each. > > The fields to search into are determined by the user - it can be field F1 or > F2 or both. > > Also the

Re: Boolean Query - TooManyClauses Exception

2005-05-19 Thread Daniel Naber
On Thursday 19 May 2005 14:39, Jayakumar.V wrote: > I'm getting a TooManyClauses Exception when I try to query for a > particular date range. See http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-06fafb5d19e786a50fb3dfb8821a6af9f37aa831 -- http://www.dan

FW: Boolean Query - TooManyClauses Exception

2005-05-19 Thread Jayakumar.V
lean Query - TooManyClauses Exception Hi, I'm getting a TooManyClauses Exception when I try to query for a particular date range. I've around 4 million documents with 21 fields each. The fields to search into are determined by the user - it can be field F1 or F2 or both. Also there is

Boolean Query - TooManyClauses Exception

2005-05-19 Thread Jayakumar.V
Hi, I'm getting a TooManyClauses Exception when I try to query for a particular date range. I've around 4 million documents with 21 fields each. The fields to search into are determined by the user - it can be field F1 or F2 or both. Also there is a date range within which the re