#
D3grade
Hi Guys,
We have used cuyahoga on a project for a client with offices worldwide. We make use of cuyahogas site feature to allow each office to have it's own site. So we now have cuyahoga maintaining 9 sites and a total of nearly 2000 pages.
We have recently hit a problem with the search feature and am not sure what to do to resolve it. Whenever we try to do a search we get the following exception:
This is whats lucene say about the exception
Can anybody offer some advice on how to fix this?
Many thanks
Matt
We have used cuyahoga on a project for a client with offices worldwide. We make use of cuyahogas site feature to allow each office to have it's own site. So we now have cuyahoga maintaining 9 sites and a total of nearly 2000 pages.
We have recently hit a problem with the search feature and am not sure what to do to resolve it. Whenever we try to do a search we get the following exception:
Server Error in '/' Application.
--------------------------------------------------------------------------------
System error.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Lucene.Net.Search.BooleanQuery+TooManyClauses: System error.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[TooManyClauses: System error.]
Lucene.Net.Search.BooleanQuery.Add(BooleanClause clause) +60
Lucene.Net.Search.BooleanQuery.Add(Query query, Occur occur) +59
THINK.Core.Service.Search.IndexQuery.BuildSecurityQuery(IList`1 sectionIds, IList`1 userRoleIds) in D:\Work\THINK\CMS_DEV02\Source\Core\Service\Search\IndexQuery.cs:132
THINK.Core.Service.Search.IndexQuery.Find(String queryText, IDictionary`2 keywordFilter, IList`1 categoryNames, Int32 pageIndex, Int32 pageSize, IList`1 sectionIds, IList`1 userRoleIds) in D:\Work\THINK\CMS_DEV02\Source\Core\Service\Search\IndexQuery.cs:52
THINK.Core.Service.Search.SearchService.FindContent(String queryText, IDictionary`2 keywordFilter, IList`1 categoryNames, Int32 pageIndex, Int32 pageSize, User user) in D:\Work\THINK\CMS_DEV02\Source\Core\Service\Search\SearchService.cs:186
THINK.Core.Service.Search.SearchService.FindContent(String queryText, IDictionary`2 keywordFilter, Int32 pageIndex, Int32 pageSize, User user) in D:\Work\THINK\CMS_DEV02\Source\Core\Service\Search\SearchService.cs:156
THINK.Modules.Search.SearchModule.GetSearchResults(String queryText, Int32 pageIndex, Int32 pageSize, User user) +261
THINK.Modules.Search.SearchModule.GetSearchResults(String queryText, User user) +45
THINK.Modules.Search.Search.BindSearchResults(String queryString, Int32 pageIndex) +152
THINK.Modules.Search.Search.Page_Load(Object sender, EventArgs e) +312
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 This is whats lucene say about the exception
Thrown when an attempt is made to add more than {@link #GetMaxClauseCount()} clauses. This typically happens if a PrefixQuery, FuzzyQuery, WildcardQuery, or RangeQuery is expanded to many terms during search.
Can anybody offer some advice on how to fix this?
Many thanks
Matt