mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-23 20:42:11 +00:00
The parameter in Criteria#assertNoBlankInWildcardQuery is set incorrectly.
Original Pull Request #2744 Closes #2743
This commit is contained in:
parent
62686f3b38
commit
a0b04a346e
@ -387,7 +387,7 @@ public class Criteria {
|
|||||||
|
|
||||||
Assert.notNull(s, "s may not be null");
|
Assert.notNull(s, "s may not be null");
|
||||||
|
|
||||||
assertNoBlankInWildcardQuery(s, true, false);
|
assertNoBlankInWildcardQuery(s, false, true);
|
||||||
queryCriteriaEntries.add(new CriteriaEntry(OperationKey.STARTS_WITH, s));
|
queryCriteriaEntries.add(new CriteriaEntry(OperationKey.STARTS_WITH, s));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -419,7 +419,7 @@ public class Criteria {
|
|||||||
|
|
||||||
Assert.notNull(s, "s may not be null");
|
Assert.notNull(s, "s may not be null");
|
||||||
|
|
||||||
assertNoBlankInWildcardQuery(s, false, true);
|
assertNoBlankInWildcardQuery(s, true, false);
|
||||||
queryCriteriaEntries.add(new CriteriaEntry(OperationKey.ENDS_WITH, s));
|
queryCriteriaEntries.add(new CriteriaEntry(OperationKey.ENDS_WITH, s));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user