Class: Dina::SearchMapping
- Inherits:
-
BaseSearch
- Object
- JsonApiClient::Resource
- BaseModel
- BaseSearch
- Dina::SearchMapping
- Defined in:
- lib/dina/search/search_mapping.rb
Class Method Summary collapse
- .endpoint_path ⇒ Object
-
.execute(index:) ⇒ Hash
Return the search mapping document.
Methods inherited from BaseSearch
endpoint, index_name, verify_ssl
Methods inherited from BaseModel
custom_headers, find_by_group, #initialize, properties, site
Constructor Details
This class inherits a constructor from Dina::BaseModel
Class Method Details
.endpoint_path ⇒ Object
6 7 8 |
# File 'lib/dina/search/search_mapping.rb', line 6 def self.endpoint_path "search-api/search-ws/mapping" end |
.execute(index:) ⇒ Hash
Return the search mapping document
15 16 17 18 19 20 |
# File 'lib/dina/search/search_mapping.rb', line 15 def self.execute(index:) params = { indexName: index_name(index: index) } super(params.compact) end |