Skip to content

Commit

Permalink
updating UpdateForV10 annotation to include both subsearches and rank
Browse files Browse the repository at this point in the history
  • Loading branch information
pmpailis committed Oct 16, 2024
1 parent fa699e1 commit 949ec12
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public final class SearchSourceBuilder implements Writeable, ToXContentObject, R
public static final ParseField TIMEOUT_FIELD = new ParseField("timeout");
public static final ParseField TERMINATE_AFTER_FIELD = new ParseField("terminate_after");
public static final ParseField QUERY_FIELD = new ParseField("query");
@UpdateForV10(owner = UpdateForV10.Owner.SEARCH_RELEVANCE) // remove [sub_searches] and [rank] support in 10.0
public static final ParseField SUB_SEARCHES_FIELD = new ParseField("sub_searches").withAllDeprecated("retriever");
public static final ParseField RANK_FIELD = new ParseField("rank").withAllDeprecated("retriever");
public static final ParseField POST_FILTER_FIELD = new ParseField("post_filter");
Expand Down Expand Up @@ -152,14 +153,12 @@ public static HighlightBuilder highlight() {

private transient RetrieverBuilder retrieverBuilder;

@UpdateForV10(owner = UpdateForV10.Owner.SEARCH_RELEVANCE) // remove sub_searches support in 10.0
private List<SubSearchSourceBuilder> subSearchSourceBuilders = new ArrayList<>();

private QueryBuilder postQueryBuilder;

private List<KnnSearchBuilder> knnSearch = new ArrayList<>();

@UpdateForV10(owner = UpdateForV10.Owner.SEARCH_RELEVANCE) // throw when parsing rrf through rank
private RankBuilder rankBuilder = null;

private int from = -1;
Expand Down

0 comments on commit 949ec12

Please sign in to comment.