Skip to content

Commit

Permalink
Removed case insensitivity tests that break with BWC
Browse files Browse the repository at this point in the history
  • Loading branch information
markharwood committed Sep 22, 2020
1 parent 1efb2b0 commit 81ccb89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ protected PrefixQueryBuilder doCreateTestQueryBuilder() {
if (randomBoolean()) {
query.rewrite(getRandomRewriteMethod());
}
if (randomBoolean()) {
query.caseInsensitive(true);
}
return query;
}

Expand Down Expand Up @@ -104,8 +101,7 @@ public void testBlendedRewriteMethod() throws IOException {

public void testFromJson() throws IOException {
String json =
"{ \"prefix\" : { \"user\" : { \"value\" : \"ki\", \"boost\" : 2.0, "
+ " \"case_insensitive\" : true\n"
"{ \"prefix\" : { \"user\" : { \"value\" : \"ki\", \"boost\" : 2.0"
+ "} }}";

PrefixQueryBuilder parsed = (PrefixQueryBuilder) parseQuery(json);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ protected WildcardQueryBuilder doCreateTestQueryBuilder() {
if (randomBoolean()) {
query.rewrite(randomFrom(getRandomRewriteMethod()));
}
if (randomBoolean()) {
query.caseInsensitive(true);
}
return query;
}

Expand Down Expand Up @@ -106,8 +103,7 @@ public void testEmptyValue() throws IOException {
}

public void testFromJson() throws IOException {
String json = "{ \"wildcard\" : { \"user\" : { \"wildcard\" : \"ki*y\", \"boost\" : 2.0,"
+ "\"case_insensitive\" : true\n"
String json = "{ \"wildcard\" : { \"user\" : { \"wildcard\" : \"ki*y\", \"boost\" : 2.0"
+ " } }}";
WildcardQueryBuilder parsed = (WildcardQueryBuilder) parseQuery(json);
checkGeneratedJson(json, parsed);
Expand Down

0 comments on commit 81ccb89

Please sign in to comment.