Aricie
The DNN Expert for your web project
DNN Community Forums

maxClauseCount is set to 1024 Exception

Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author
Messages


John A











New Member



Posts:




New Member



    Hello and thank you for your help in advance,

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



    samyb











    New Member



    Posts:




    New Member



      Hello,

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

      Samy



      John A











      New Member



      Posts:




      New Member



        Thank you for your response.

        But I do not know what you are referencing?

        Is it in your code or Java code?



        samyb











        New Member



        Posts:




        New Member



          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



          John A











          New Member



          Posts:




          New Member



            OK - I got Lucene.net project.

            Are you building it 3.5 or 4?

            You are not authorized to post a reply.
            Page 1 of 212 > >>