You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by santosh <sa...@siti.com> on 2005/09/22 07:55:22 UTC

Can any one help

Hi,



Below is the problem I am facing when  I am trying to get the index file
from my production box to local.  I got this Exception:

 org.apache.lucene.search.BooleanQuery$TooManyClauses

        at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:78)



This index file contains nearly 30,000 documents.  This exception is
triggered in few cases, when search words are  eg : java  , eg .java oracle,
eg :  java oracle sql



This issue is not seen in my production box.  For resolving the issue in
local setup some modifications to code are done like,  increasing the clause
count, after this its working fine.



Before getting Hits from the Boolean query I am checking the clause count it
is not more than 20 Even I am not using the RangeQuery.



My question is that am I going in the right direction or is there any other
settings which I need to take care so that I will not face such difficulty
as my production data keeps increasing to good volumes.



Pls. Suggest …



Thanks



Santhosh Kumar Pabba


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: Can any one help

Posted by Daniel Naber <lu...@danielnaber.de>.
On Thursday 22 September 2005 15:20, santosh wrote:

(TooManyClauses)
> We are passing this String " booleanQuery.toString() =  
>  +contents:java* +contents:oracle* "  to searcher

see
http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-06fafb5d19e786a50fb3dfb8821a6af9f37aa831

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Can any one help

Posted by santosh <sa...@siti.com>.
Hi Erik,

Thanks for support

We are passing this String " booleanQuery.toString() =    +contents:java*
+contents:oracle* "  to searcher
and i also observed that internally it is creating queries which are adding
to the BooleanQuery and Clause sixe is increasing.

Any suggetsion
-Santhosh

----- Original Message ----- 
From: "Erik Hatcher" <er...@ehatchersolutions.com>
To: <ja...@lucene.apache.org>
Sent: Thursday, September 22, 2005 6:32 PM
Subject: Re: Can any one help


What is the offending .toString() of your query?   You're building a
big boolean query somehow - via wildcards?  range?  fuzzy?  The
queries you mention below would not cause that error.

Also, please follow-up to java-user list, not java-dev.

     Erik


On Sep 22, 2005, at 1:55 AM, santosh wrote:

> Hi,
>
>
>
> Below is the problem I am facing when  I am trying to get the index
> file
> from my production box to local.  I got this Exception:
>
>  org.apache.lucene.search.BooleanQuery$TooManyClauses
>
>         at org.apache.lucene.search.BooleanQuery.add
> (BooleanQuery.java:78)
>
>
>
> This index file contains nearly 30,000 documents.  This exception is
> triggered in few cases, when search words are  eg : java  ,
> eg .java oracle,
> eg :  java oracle sql
>
>
>
> This issue is not seen in my production box.  For resolving the
> issue in
> local setup some modifications to code are done like,  increasing
> the clause
> count, after this its working fine.
>
>
>
> Before getting Hits from the Boolean query I am checking the clause
> count it
> is not more than 20 Even I am not using the RangeQuery.
>
>
>
> My question is that am I going in the right direction or is there
> any other
> settings which I need to take care so that I will not face such
> difficulty
> as my production data keeps increasing to good volumes.
>
>
>
> Pls. Suggest …
>
>
>
> Thanks
>
>
>
> Santhosh Kumar Pabba
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: Can any one help

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
What is the offending .toString() of your query?   You're building a  
big boolean query somehow - via wildcards?  range?  fuzzy?  The  
queries you mention below would not cause that error.

Also, please follow-up to java-user list, not java-dev.

     Erik


On Sep 22, 2005, at 1:55 AM, santosh wrote:

> Hi,
>
>
>
> Below is the problem I am facing when  I am trying to get the index  
> file
> from my production box to local.  I got this Exception:
>
>  org.apache.lucene.search.BooleanQuery$TooManyClauses
>
>         at org.apache.lucene.search.BooleanQuery.add 
> (BooleanQuery.java:78)
>
>
>
> This index file contains nearly 30,000 documents.  This exception is
> triggered in few cases, when search words are  eg : java  ,  
> eg .java oracle,
> eg :  java oracle sql
>
>
>
> This issue is not seen in my production box.  For resolving the  
> issue in
> local setup some modifications to code are done like,  increasing  
> the clause
> count, after this its working fine.
>
>
>
> Before getting Hits from the Boolean query I am checking the clause  
> count it
> is not more than 20 Even I am not using the RangeQuery.
>
>
>
> My question is that am I going in the right direction or is there  
> any other
> settings which I need to take care so that I will not face such  
> difficulty
> as my production data keeps increasing to good volumes.
>
>
>
> Pls. Suggest …
>
>
>
> Thanks
>
>
>
> Santhosh Kumar Pabba
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org