diff --git a/src/search.js b/src/search.js index c1463486d2..cbd4e4f40c 100644 --- a/src/search.js +++ b/src/search.js @@ -15,7 +15,6 @@ const search = module.exports; search.search = async function (data) { const start = process.hrtime(); - data.searchIn = data.searchIn || 'titlesposts'; data.sortBy = data.sortBy || 'relevance'; let result; diff --git a/test/search.js b/test/search.js index e86d48bc48..14179ad5cd 100644 --- a/test/search.js +++ b/test/search.js @@ -216,6 +216,7 @@ describe('Search', () => { it('should not find anything', (done) => { search.search({ query: 'xxxxxxxxxxxxxx', + searchIn: 'titles', }, (err, data) => { assert.ifError(err); assert(Array.isArray(data.posts));