Aricie
The DNN Expert for your web project
Forum
HomeHomeExpert ModulesExpert ModulesLuceneSearchLuceneSearchmaxClauseCount is set to 1024 ExceptionmaxClauseCount is set to 1024 Exception
Previous
 
Next
New Post
11/1/2016 4:22 PM
 

Hello and thank you for your help in advance,

Is there a way to set the Max Clause count greater than what is is?

 

 
New Post
11/2/2016 8:42 AM
 

Hello,

You can set the static property MaxClauseCount in BooleanQuery in order to change the value

Samy

 
New Post
11/2/2016 1:35 PM
 

Thank you for your response.

But I do not know what you are referencing?

Is it in your code or Java code?

 
New Post
11/2/2016 2:35 PM
 

It should be in your code if you are creating custom components for LuceneSearch. If you don't, I'd recommend reflecting on the reasons why you're having lots of clauses in your query (large range, lots of common prefixes, etc) and decide how to cut these out.

However it doesn't look like you are working at a low level, so you may need to get some help regarding how you want to use LuceneSearch and how to configure it to match your needs. At the moment there is no UI to change the max clauses value in the interface and it must be done through code.

Regards,

Samy

 
New Post
11/2/2016 3:40 PM
 

OK - I got Lucene.net project.

Are you building it 3.5 or 4?

 
New Post
11/10/2016 2:07 PM
 

This is a property of the project that you can check. However your question makes me think that you may need some assistance before changing the code, please consider tackling the change with some help.

Best regards,

Samy

 
Previous
 
Next
HomeHomeExpert ModulesExpert ModulesLuceneSearchLuceneSearchmaxClauseCount is set to 1024 ExceptionmaxClauseCount is set to 1024 Exception