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 via email to