code: function () {
      return {
        query: {
          filtered: {
            query: {
              match_all: {}
            },
            filter: {
              bool: {
                must: [{
                  missing: {
                    field: "deletedAt",
                    null_value: true
                  }
                }, {
                  term: {
                    published: true
                  }
                }],
                should: []
              }
            }
          }
        }
      };
    }
docs: /*
  The baseQuery return object should be used when there aren't
  any additional filters to be applied to a query. For example,
  a search for the 20 most recently created makes can be made using this query.
  This is a filtered query:
  http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-filtered-query.html