Throw exception on error instead of logging to console
This commit is contained in:
parent
6df822e5a6
commit
aa65bc5c18
@ -104,7 +104,7 @@ public class TextSearchFacet implements Facet {
|
|||||||
_query,
|
_query,
|
||||||
_caseSensitive ? 0 : Pattern.CASE_INSENSITIVE);
|
_caseSensitive ? 0 : Pattern.CASE_INSENSITIVE);
|
||||||
} catch (java.util.regex.PatternSyntaxException e) {
|
} catch (java.util.regex.PatternSyntaxException e) {
|
||||||
e.printStackTrace();
|
throw new JSONException(e);
|
||||||
}
|
}
|
||||||
} else if (!_caseSensitive) {
|
} else if (!_caseSensitive) {
|
||||||
_query = _query.toLowerCase();
|
_query = _query.toLowerCase();
|
||||||
|
Loading…
Reference in New Issue
Block a user