Skip to content

Commit a251c09

Browse files
Change behavior for LIKE LIST and _index
1 parent 99364d7 commit a251c09

File tree

1 file changed

+0
-3
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/string/regex

1 file changed

+0
-3
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/string/regex/WildcardLikeList.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ public Translatable translatable(LucenePushdownPredicates pushdownPredicates) {
150150
*/
151151
@Override
152152
public Query asQuery(LucenePushdownPredicates pushdownPredicates, TranslatorHandler handler) {
153-
if (configuration != null && configuration.stringLikeOnIndex() == false) {
154-
throw new IllegalArgumentException("LIKE with LIST cannot be used with string_like_on_index enabled. Use LIKE instead.");
155-
}
156153
var field = field();
157154
LucenePushdownPredicates.checkIsPushableAttribute(field);
158155
String targetFieldName = handler.nameOf(field instanceof FieldAttribute fa ? fa.exactAttribute() : field);

0 commit comments

Comments
 (0)