Class: Workarea::Search::AdminReleasables

Inherits:
Object
  • Object
show all
Includes:
AdminIndexSearch, AdminSorting, Pagination, Query
Defined in:
app/queries/workarea/search/admin_releasables.rb

Instance Method Summary collapse

Methods included from Pagination

#each_by, #from, #page, #per_page, #results, #size

Methods included from AdminSorting

available_sorts, #current_sort, #default_admin_sort, #sort, #user_selected_sort

Methods included from AdminIndexSearch

#aggregations, #autocomplete?, #exclude_filter_clause, #facets, #fields, #filters, #jump_to_navigation_filter_clause, #post_filter, #sanitized_query

Methods included from Query

#additional_options, #aggregations, #body, #id, #initialize, #load_model_from, #loaded_results, #post_filter, #query_string, #response, #results, #scroll, #stats, #total

Instance Method Details

#queryObject



11
12
13
14
15
# File 'app/queries/workarea/search/admin_releasables.rb', line 11

def query
  result = super
  result[:bool][:must] << { term: { releasable: true } }
  result
end