Skip to content

Commit

Permalink
Fix regression from merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
afoucret committed Nov 20, 2024
1 parent 439681f commit b5b59ae
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@
import org.elasticsearch.xpack.esql.core.expression.predicate.fulltext.MultiMatchQueryPredicate;
import org.elasticsearch.xpack.esql.core.expression.predicate.fulltext.StringQueryPredicate;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class FullTextWritables {

public static List<NamedWriteableRegistry.Entry> getNamedWriteables() {
List<NamedWriteableRegistry.Entry> entries = List.of(
MatchQueryPredicate.ENTRY,
MultiMatchQueryPredicate.ENTRY,
StringQueryPredicate.ENTRY,
QueryString.ENTRY,
Match.ENTRY
);
List<NamedWriteableRegistry.Entry> entries = new ArrayList<>();

entries.add(MatchQueryPredicate.ENTRY);
entries.add(MultiMatchQueryPredicate.ENTRY);
entries.add(StringQueryPredicate.ENTRY);
entries.add(QueryString.ENTRY);
entries.add(Match.ENTRY);

if (EsqlCapabilities.Cap.KQL_FUNCTION.isEnabled()) {
entries.add(Kql.ENTRY);
Expand Down

0 comments on commit b5b59ae

Please sign in to comment.