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

Instance Method Summary collapse

Methods included from API

multi_types, no_indices, source_param

Methods included from Chainable

#chainable, #extendable

Instance Attribute Details

#typeObject

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_indextrue

The request can operate on multiple indices.

Returns:

  • (true)


13
# File 'lib/eson/shared/core/simple_search.rb', line 13

multi_index true

#parametersArray<String>

The request supports the following parameters: timeout, types, q, routing, df, analyzer, fields, sort, track_scores, timeout, from, size, search_type

Returns:

  • (Array<String>)

    The parameters



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

#typesObject



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