Use excludes instead of exclude in ES _source query

As of ES 5.0, you must use the plural name.
This commit is contained in:
Court Ewing
2016-09-14 12:24:11 -04:00
parent c0c535076e
commit 7af0c82080
2 changed files with 2 additions and 2 deletions

View File

@@ -278,7 +278,7 @@ describe('Worker class', function () {
const excludedFields = [ 'output.content' ];
const { body } = getSearchParams(jobtype);
expect(body).to.have.property('_source');
expect(body._source).to.eql({ exclude: excludedFields });
expect(body._source).to.eql({ excludes: excludedFields });
});
it('should search by job type', function () {