RE: If I put a cached filter, do i still need to set the max clause count?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: If I put a cached filter, do i still need to set the max clause count?

Uwe Schindler-2
Hi,

This question is about Lucene.NET, which is not part of the Apache Lucene project. Please send your questions to the Lucene.NET mailing list: [hidden email]

Uwe

-----
Uwe Schindler
[hidden email]
Apache Lucene PMC Member / Committer
Bremen, Germany
http://lucene.apache.org/


> -----Original Message-----
> From: doglin82 [mailto:[hidden email]]
> Sent: Wednesday, March 11, 2015 4:21 PM
> To: [hidden email]
> Subject: If I put a cached filter, do i still need to set the max clause count?
>
> We are using Lucene for our web site and as the index grew, we got the
> following exception.
>
> the Message: maxClauseCount is set to 1024 Stack Trace:
> at Lucene.Net.Search.BooleanQuery.Add(BooleanClause clause) at
> Lucene.Net.Search.BooleanQuery.Add(Query query, Occur occur) Instead of
> using Range Query, I am using a Range Filter now, and wrapped it with a
> Cached Filter,
>
>   RangeFilter dateFilter = new RangeFilter("documentpublishfrom",
> "20000101000000",
> DateTime.Now.AddYears(10).ToString("yyyyMMddHHmmss"),
> true, true);
>
>
>   CachingWrapperFilter cachingFilter = new CachingWrapperFilter(dateFilter );
>
>
>     var results = _searcher.Search(bq, cachingFilter, sortBy); So, now that I am
> using filters intsead, do i need to set max clause count still? Please advise
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/If-I-put-
> a-cached-filter-do-i-still-need-to-set-the-max-clause-count-tp4192413.html
> Sent from the Lucene - General mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

RE: If I put a cached filter, do i still need to set the max clause count?

Uwe Schindler-2
Hi,

This question is about Lucene.NET, which is not part of the Apache Lucene project. Please send your questions to the Lucene.NET mailing list: [hidden email]

Uwe

-----
Uwe Schindler
[hidden email]
Apache Lucene PMC Member / Committer
Bremen, Germany
http://lucene.apache.org/


> -----Original Message-----
> From: doglin82 [mailto:[hidden email]]
> Sent: Wednesday, March 11, 2015 4:21 PM
> To: [hidden email]
> Subject: If I put a cached filter, do i still need to set the max clause count?
>
> We are using Lucene for our web site and as the index grew, we got the
> following exception.
>
> the Message: maxClauseCount is set to 1024 Stack Trace:
> at Lucene.Net.Search.BooleanQuery.Add(BooleanClause clause) at
> Lucene.Net.Search.BooleanQuery.Add(Query query, Occur occur) Instead of
> using Range Query, I am using a Range Filter now, and wrapped it with a
> Cached Filter,
>
>   RangeFilter dateFilter = new RangeFilter("documentpublishfrom",
> "20000101000000",
> DateTime.Now.AddYears(10).ToString("yyyyMMddHHmmss"),
> true, true);
>
>
>   CachingWrapperFilter cachingFilter = new CachingWrapperFilter(dateFilter );
>
>
>     var results = _searcher.Search(bq, cachingFilter, sortBy); So, now that I am
> using filters intsead, do i need to set max clause count still? Please advise
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/If-I-put-
> a-cached-filter-do-i-still-need-to-set-the-max-clause-count-tp4192413.html
> Sent from the Lucene - General mailing list archive at Nabble.com.