Module: Eson::Shared::SimpleSearch
- Extended by:
- API
- Defined in:
- lib/eson/shared/core/simple_search.rb
Overview
Requests using this API have the following properties:
The request supports the following parameters: timeout, types, q, routing, df, analyzer, fields, sort, track_scores, timeout, from, size, search_type The request can operate on multiple indices.
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#multi_index ⇒ true
The request can operate on multiple indices.
-
#parameters ⇒ Array<String>
The request supports the following parameters: timeout, types, q, routing, df, analyzer, fields, sort, track_scores, timeout, from, size, search_type.
- #types ⇒ Object
Methods included from API
multi_types, no_indices, source_param
Methods included from Chainable
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
15 16 17 |
# File 'lib/eson/shared/core/simple_search.rb', line 15 def type @type end |
Instance Method Details
#multi_index ⇒ true
The request can operate on multiple indices.
13 |
# File 'lib/eson/shared/core/simple_search.rb', line 13 multi_index true |
#parameters ⇒ Array<String>
The request supports the following parameters: timeout, types, q, routing, df, analyzer, fields, sort, track_scores, timeout, from, size, search_type
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/eson/shared/core/simple_search.rb', line 18 parameters :timeout, :types, :q, :routing, :df, :analyzer, :fields, :sort, :track_scores, :timeout, :from, :size, :search_type |
#types ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/eson/shared/core/simple_search.rb', line 32 def types if @types Array(@types) elsif type Array(type) else [] end end |