Skip to content

Commit

Permalink
default training query updated to match what the searchBar would prod…
Browse files Browse the repository at this point in the history
…uce. fixes evaluate panel dataset label
  • Loading branch information
alvarezmelissa87 committed Sep 28, 2020
1 parent d65c1f3 commit ae49242
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ export const defaultSearchQuery = {

export const getDefaultTrainingFilterQuery = (resultsField: string, isTraining: boolean) => ({
bool: {
must: [
minimum_should_match: 1,
should: [
{
term: { [`${resultsField}.is_training`]: { value: isTraining } },
match: { [`${resultsField}.is_training`]: isTraining },
},
],
},
Expand Down

0 comments on commit ae49242

Please sign in to comment.