Class: ProxES::Request::Msearch

Inherits:
Multi show all
Defined in:
lib/proxes/request/msearch.rb

Constant Summary collapse

INDICES_REGEX =
/"(index)"\s*:\s*"(.*?)"/

Constants inherited from ProxES::Request

ID_ENDPOINTS, WRITE_METHODS

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Multi

#body_indices, #index=, #indices, #indices?, #parse

Methods inherited from ProxES::Request

#detail, #duration, from_env, #html?, #indices, #indices?, #initialize, #parse, path_endpoint, #user, #user_id

Constructor Details

This class inherits a constructor from ProxES::Request

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



11
12
13
# File 'lib/proxes/request/msearch.rb', line 11

def index
  @index
end

#typeObject (readonly)

Returns the value of attribute type.



11
12
13
# File 'lib/proxes/request/msearch.rb', line 11

def type
  @type
end

Class Method Details

.indices_regexObject



18
19
20
# File 'lib/proxes/request/msearch.rb', line 18

def indices_regex
  INDICES_REGEX
end

Instance Method Details

#endpointObject



13
14
15
# File 'lib/proxes/request/msearch.rb', line 13

def endpoint
  '_msearch'
end