preserve the query string in the searchSource, if it exists

This commit is contained in:
Joe Fleming 2014-11-10 17:28:41 -07:00
parent bccec3d8e3
commit 1b3a385232

View file

@ -70,7 +70,7 @@ define(function (require) {
var $state = (function initState() {
var savedVisState = vis.getState();
var stateDefaults = {
query: {query_string: {query: '*'}},
query: searchSource.get('query') || {query_string: {query: '*'}},
vis: savedVisState
};