Browse Source

Disable dfs_query_then_fetch

Just testing...
disable-dfs_query_then_fetch
Julian Simioni 8 years ago committed by Julian Simioni
parent
commit
acefa1ed3e
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 1
      controller/search.js
  2. 1
      controller/search_with_ids.js
  3. 5
      test/unit/controller/search.js
  4. 1
      test/unit/controller/search_with_ids.js

1
controller/search.js

@ -48,7 +48,6 @@ function setup( apiConfig, esclient, query, should_execute ){
// elasticsearch command // elasticsearch command
const cmd = { const cmd = {
index: apiConfig.indexName, index: apiConfig.indexName,
searchType: 'dfs_query_then_fetch',
body: renderedQuery.body body: renderedQuery.body
}; };

1
controller/search_with_ids.js

@ -47,7 +47,6 @@ function setup( apiConfig, esclient, query, should_execute ){
// elasticsearch command // elasticsearch command
const cmd = { const cmd = {
index: apiConfig.indexName, index: apiConfig.indexName,
searchType: 'dfs_query_then_fetch',
body: renderedQuery.body body: renderedQuery.body
}; };

5
test/unit/controller/search.js

@ -33,7 +33,6 @@ module.exports.tests.success = function(test, common) {
t.equal(esclient, 'this is the esclient'); t.equal(esclient, 'this is the esclient');
t.deepEqual(cmd, { t.deepEqual(cmd, {
index: 'indexName value', index: 'indexName value',
searchType: 'dfs_query_then_fetch',
body: 'this is the query body' body: 'this is the query body'
}); });
@ -98,7 +97,6 @@ module.exports.tests.success = function(test, common) {
t.equal(esclient, 'this is the esclient'); t.equal(esclient, 'this is the esclient');
t.deepEqual(cmd, { t.deepEqual(cmd, {
index: 'indexName value', index: 'indexName value',
searchType: 'dfs_query_then_fetch',
body: 'this is the query body' body: 'this is the query body'
}); });
@ -162,7 +160,6 @@ module.exports.tests.success = function(test, common) {
t.equal(esclient, 'this is the esclient'); t.equal(esclient, 'this is the esclient');
t.deepEqual(cmd, { t.deepEqual(cmd, {
index: 'indexName value', index: 'indexName value',
searchType: 'dfs_query_then_fetch',
body: 'this is the query body' body: 'this is the query body'
}); });
@ -234,7 +231,6 @@ module.exports.tests.success = function(test, common) {
t.equal(esclient, 'this is the esclient'); t.equal(esclient, 'this is the esclient');
t.deepEqual(cmd, { t.deepEqual(cmd, {
index: 'indexName value', index: 'indexName value',
searchType: 'dfs_query_then_fetch',
body: 'this is the query body' body: 'this is the query body'
}); });
@ -319,7 +315,6 @@ module.exports.tests.timeout = function(test, common) {
t.equal(esclient, 'this is the esclient'); t.equal(esclient, 'this is the esclient');
t.deepEqual(cmd, { t.deepEqual(cmd, {
index: 'indexName value', index: 'indexName value',
searchType: 'dfs_query_then_fetch',
body: 'this is the query body' body: 'this is the query body'
}); });

1
test/unit/controller/search_with_ids.js

@ -34,7 +34,6 @@ module.exports.tests.success = (test, common) => {
t.equal(esclient, 'this is the esclient'); t.equal(esclient, 'this is the esclient');
t.deepEqual(cmd, { t.deepEqual(cmd, {
index: 'indexName value', index: 'indexName value',
searchType: 'dfs_query_then_fetch',
body: 'this is the query body' body: 'this is the query body'
}); });

Loading…
Cancel
Save