@@ -96,14 +96,14 @@ public RegexpQuery(Term term, int flags, int maxDeterminizedStates) {
9696 * Constructs a query for terms matching <code>term</code>.
9797 *
9898 * @param term regular expression.
99- * @param maxDeterminizedStates maximum number of states that compiling the
10099 * @param syntax_flags optional RegExp syntax features from {@link RegExp}
101100 * automaton for the regexp can result in. Set higher to allow more complex
102101 * queries and lower to prevent memory exhaustion.
103102 * @param match_flags boolean 'or' of match behavior options such as case insensitivity
103+ * @param maxDeterminizedStates maximum number of states that compiling the
104104 */
105- public RegexpQuery (Term term , int maxDeterminizedStates , int syntax_flags , int match_flags ) {
106- this (term , defaultProvider , maxDeterminizedStates , syntax_flags , match_flags );
105+ public RegexpQuery (Term term , int syntax_flags , int match_flags , int maxDeterminizedStates ) {
106+ this (term , syntax_flags , match_flags , defaultProvider , maxDeterminizedStates );
107107 }
108108
109109 /**
@@ -118,22 +118,22 @@ public RegexpQuery(Term term, int maxDeterminizedStates, int syntax_flags, int
118118 */
119119 public RegexpQuery (Term term , int syntax_flags , AutomatonProvider provider ,
120120 int maxDeterminizedStates ) {
121- this (term , provider , maxDeterminizedStates , syntax_flags , 0 );
121+ this (term , syntax_flags , 0 , provider , maxDeterminizedStates );
122122 }
123123
124124 /**
125125 * Constructs a query for terms matching <code>term</code>.
126126 *
127127 * @param term regular expression.
128128 * @param syntax_flags optional RegExp features from {@link RegExp}
129+ * @param match_flags boolean 'or' of match behavior options such as case insensitivity
129130 * @param provider custom AutomatonProvider for named automata
130131 * @param maxDeterminizedStates maximum number of states that compiling the
131132 * automaton for the regexp can result in. Set higher to allow more complex
132133 * queries and lower to prevent memory exhaustion.
133- * @param match_flags boolean 'or' of match behavior options such as case insensitivity
134134 */
135- public RegexpQuery (Term term , AutomatonProvider provider ,
136- int maxDeterminizedStates , int syntax_flags , int match_flags ) {
135+ public RegexpQuery (Term term , int syntax_flags , int match_flags , AutomatonProvider provider ,
136+ int maxDeterminizedStates ) {
137137 super (term ,
138138 new RegExp (term .text (), syntax_flags , match_flags ).toAutomaton (
139139 provider , maxDeterminizedStates ), maxDeterminizedStates );
0 commit comments