I would like to reopen an old thread that comes up several times on the forum, in case someone already has a solution.
Exception Details: Lucene.Net.Search.BooleanQuery+TooManyClauses: maxClauseCount is set to 1024
So, we have a website in V12 that isn't even that extensive. In V7, we have quite a few web pages that are much larger than this (we're talking about the number of different fields within documentType) and we have a similar built-in basic external index search and there are no such problems. There is a solution described online to increase maxClauseCount, but the Lucene.net namespace in V12 does not offer me the SetMaxClauseCount option.
So if the default value is 1024 and I now have 1500 fields, how would I increase it by say 2x in my code, to have 2048 fields available.
There is a proposal on the net
@using Lucene.Net.Search;
@BooleanQuery.SetMaxClauseCount(2048);
But this is really strange. This did not give me peace and I made a duplicate of the database. Then I pointed the application to the duplicate database and deleted half the content(!). I didn't change any fields. All of a sudden the error disappeared and ExternalIndex starts to work.
Does this mean that the search is even limited by the amount of content?
Exception Details: Lucene.Net.Search.BooleanQuery
I would like to reopen an old thread that comes up several times on the forum, in case someone already has a solution.
Exception Details: Lucene.Net.Search.BooleanQuery+TooManyClauses: maxClauseCount is set to 1024
So, we have a website in V12 that isn't even that extensive. In V7, we have quite a few web pages that are much larger than this (we're talking about the number of different fields within documentType) and we have a similar built-in basic external index search and there are no such problems. There is a solution described online to increase maxClauseCount, but the Lucene.net namespace in V12 does not offer me the SetMaxClauseCount option.
So if the default value is 1024 and I now have 1500 fields, how would I increase it by say 2x in my code, to have 2048 fields available.
There is a proposal on the net @using Lucene.Net.Search; @BooleanQuery.SetMaxClauseCount(2048);
but I can't reach the SetMaxClauseCount method...
Regards
But this is really strange. This did not give me peace and I made a duplicate of the database. Then I pointed the application to the duplicate database and deleted half the content(!). I didn't change any fields. All of a sudden the error disappeared and ExternalIndex starts to work.
Does this mean that the search is even limited by the amount of content?
Regards
Solution for Umbraco 12+:
@using Lucene.Net.Search
@{
}
Found exactly what happened with me:
https://github.com/umbraco/Umbraco-CMS/issues/14751
Hope this will be fix soon.
Regards
uau, this was quick:
https://our.umbraco.com/forum/using-umbraco-and-getting-started/112700-umbraco-1212-externalindex-search-in-backoffice-returns-no-results
Regards
is working on a reply...