function hasFilters(queryObj) {
        if (Object.keys(queryObj).length > 1) {
            return true;
        }
        else if (Object.keys(queryObj).length == 1 &&
                 Object.keys(queryObj)[0] != 'query') {
            return true;
        }
        else {
            return false;
        }
    }
// takes in a query object and returns an ElasticSearch query
takes in a query object and returns an ElasticSearch query
takes in a query object and returns an ElasticSearch query
function hasFilters(queryObj) {
        if (Object.keys(queryObj).length > 1) {
            return true;
        }
        else if (Object.keys(queryObj).length == 1 &&
                 Object.keys(queryObj)[0] != 'query') {
            return true;
        }
        else {
            return false;
        }
    }
function hasFilters ( queryObj ) { if ( Object . keys ( queryObj ) . length > 1 ) { return true ; } else if ( Object . keys ( queryObj ) . length == 1 && Object . keys ( queryObj ) [ 0 ] != 'query' ) { return true ; } else { return false ; } }
takes in a query object and returns an ElasticSearch query
takes in a query object and returns an ElasticSearch query