Skip to content

Add Rescore functionality #1688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formatting issues
  • Loading branch information
pemueller committed Feb 11, 2021
commit 79b2320aa085e22cbfc38eaf722029325e805161
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,22 @@
abstract class AbstractQuery implements Query {

protected Pageable pageable = DEFAULT_PAGE;
@Nullable
protected Sort sort;
@Nullable protected Sort sort;
protected List<String> fields = new ArrayList<>();
@Nullable
protected SourceFilter sourceFilter;
@Nullable protected SourceFilter sourceFilter;
protected float minScore;
@Nullable
protected Collection<String> ids;
@Nullable
protected String route;
@Nullable protected Collection<String> ids;
@Nullable protected String route;
protected SearchType searchType = SearchType.DFS_QUERY_THEN_FETCH;
@Nullable
protected IndicesOptions indicesOptions;
@Nullable protected IndicesOptions indicesOptions;
protected boolean trackScores;
@Nullable
protected String preference;
@Nullable
protected Integer maxResults;
@Nullable
protected HighlightQuery highlightQuery;
@Nullable
private Boolean trackTotalHits;
@Nullable
private Integer trackTotalHitsUpTo;
@Nullable
private Duration scrollTime;
@Nullable
private TimeValue timeout;
@Nullable protected String preference;
@Nullable protected Integer maxResults;
@Nullable protected HighlightQuery highlightQuery;
@Nullable private Boolean trackTotalHits;
@Nullable private Integer trackTotalHitsUpTo;
@Nullable private Duration scrollTime;
@Nullable private TimeValue timeout;
private boolean explain = false;
protected List<RescorerQuery> rescorerQueries = new ArrayList<>();

Expand Down