Yes, most cases there would be some other, better, way to accomplish what
you're after, share your high level goal.
By default, Lucene, and Solr, limit the max number of clauses to 1024, even
before that your performance would go down the drain.

<maxBooleanClauses>1024</maxBooleanClauses>




On Tue, Jun 10, 2014 at 10:21 AM, Ahmet Arslan <iori...@yahoo.com.invalid>
wrote:

> Hi,
>
> Where are these ORed terms coming from? A user cannot enter this much term.
> THere are other solutions, joins, post filters etc. You need to tell us
> your high level goal.
>
>
>
> On Monday, June 9, 2014 3:51 PM, Joe Gresock <jgres...@gmail.com> wrote:
> I'm wondering what the best practice for large disjunct queries in Solr is.
> A user wants to submit a query for several hundred thousand terms, like:
> (term1 OR term2 OR ... term500,000)
>
> I know it might be better to break this up into multiple queries that can
> be merged on the user's end, but I'm wondering if there's guidance for a
> good limit of OR'ed terms per query.  100 terms?  200? 500?  Any idea what
> kinds of data set or memory limitations might govern this threshold?
>
> Thanks,
> Joe
>
> --
> I know what it is to be in need, and I know what it is to have plenty.  I
> have learned the secret of being content in any and every situation,
> whether well fed or hungry, whether living in plenty or in want.  I can do
> all this through him who gives me strength.    *-Philippians 4:12-13*
>
>

Reply via email to