|
@@ -39,6 +39,8 @@ public class RegexpQueryParser implements QueryParser {
|
|
|
|
|
|
|
|
public static final String NAME = "regexp";
|
|
public static final String NAME = "regexp";
|
|
|
|
|
|
|
|
|
|
+ public static final int DEFAULT_FLAGS_VALUE = RegexpFlag.ALL.value();
|
|
|
|
|
+
|
|
|
@Inject
|
|
@Inject
|
|
|
public RegexpQueryParser() {
|
|
public RegexpQueryParser() {
|
|
|
}
|
|
}
|
|
@@ -57,7 +59,7 @@ public class RegexpQueryParser implements QueryParser {
|
|
|
|
|
|
|
|
Object value = null;
|
|
Object value = null;
|
|
|
float boost = 1.0f;
|
|
float boost = 1.0f;
|
|
|
- int flagsValue = -1;
|
|
|
|
|
|
|
+ int flagsValue = DEFAULT_FLAGS_VALUE;
|
|
|
int maxDeterminizedStates = Operations.DEFAULT_MAX_DETERMINIZED_STATES;
|
|
int maxDeterminizedStates = Operations.DEFAULT_MAX_DETERMINIZED_STATES;
|
|
|
String queryName = null;
|
|
String queryName = null;
|
|
|
String currentFieldName = null;
|
|
String currentFieldName = null;
|