# These methods are available as Elastics.(*vars) # you can get the updated full reference and usage example of these methods # by just doing in the console: # Elastics.doc #-----------------------------------------------------------------------------# ### Create Index ### put_index: - PUT - /<> - settings: number_of_shards: <> number_of_replicas: <> - &create_index REFERENCES: group: indices_api api_name: Create Index api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html notice: "You can also pass the complete data structure as :data variable, so passing settings, mappings, warmers, aliases, ..." aliases: - :create_index post_index: - POST - /<> - settings: number_of_shards: <> number_of_replicas: <> - *create_index #-----------------------------------------------------------------------------# ### Delete Index ### delete_index: - DELETE - /<> - - REFERENCES: group: indices_api api_name: Delete Index api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html #-----------------------------------------------------------------------------# ### Get Index ### get_index: - GET - /<>/<> - - REFERENCES: group: indices_api api_name: Get Index api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html #-----------------------------------------------------------------------------# ### Indices Exists ### indices_exists: - HEAD - /<> - - REFERENCES: group: indices_api api_name: Indices Exists api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html aliases: - :index_exists - :exist? #-----------------------------------------------------------------------------# ### Open/Close Index ### close_index: - POST - /<>/_close - - &open_close_index REFERENCES: group: indices_api api_name: Open/Close Index api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html open_index: - POST - /<>/_open - - *open_close_index #-----------------------------------------------------------------------------# ### Put Mappings ### put_index_mapping: - PUT - /<>/_mapping/<> - <>: properties: <> - REFERENCES: group: indices_api api_name: Put Mappings api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html aliases: - :put_mappings #-----------------------------------------------------------------------------# ### Get Mappings ### get_index_mapping: - GET - /<>/_mapping/<> - - REFERENCES: group: indices_api api_name: Get Mappings api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html #-----------------------------------------------------------------------------# ### Get Field Mappings ### get_field_mapping: - GET - /<>/_mapping/<>/field/<> - - REFERENCES: group: indices_api api_name: Get Field Mappings api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html #-----------------------------------------------------------------------------# ### Types Exists ### types_exists: &types_exists - HEAD - /<>/<> - - REFERENCES: group: indices_api api_name: Types Exists api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html aliases: - :type_exists #-----------------------------------------------------------------------------# ### Delete Mappings ### delete_index_mapping: &delete_index_mapping - DELETE - /<>/<> - - REFERENCES: group: indices_api api_name: Delete Mappings api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-mapping.html #-----------------------------------------------------------------------------# ### Index Aliases ### # generic index aliases get_index_aliases: - GET - /<>/_aliases - - REFERENCES: &index_aliases group: indices_api api_name: Index Aliases api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html post_index_aliases: - POST - /_aliases - actions: <> - REFERENCES: <<: *index_aliases notice: "This is the generic interface allowing all the options. You can pass the :actions array or the aliases API structure as the :data variable." # single index alias delete_index_alias: - DELETE - /<>/_alias/<> - - REFERENCES: *index_aliases get_index_alias: - GET - /<>/_alias/<> - - REFERENCES: *index_aliases put_index_alias: - PUT - /<>/_alias/<> - - REFERENCES: <<: *index_aliases notice: "This is the single index alias. You can pass other options as the :data variable." #-----------------------------------------------------------------------------# ### Update Indices Settings ### update_index_settings: - PUT - /<>/_settings - - REFERENCES: group: indices_api api_name: Update Indices Settings api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html notice: "You can pass the settings structure as the :data variable." aliases: - :put_index_settings #-----------------------------------------------------------------------------# ### Get Indices Settings ### get_index_settings: - GET - /<>/_settings - - REFERENCES: group: indices_api api_name: Get Indices Settings api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-settings.html aliases: - :get_settings #-----------------------------------------------------------------------------# ### Analyze ### analyze_index: - GET - /<>/_analyze - - REFERENCES: group: indices_api api_name: Analyze api_url: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-analyze.html notice: "You can pass the text to analyze as the :data variable (or the param :text). You can pass the parameters as the :params variable." #-----------------------------------------------------------------------------# ### Index Templates ### delete_index_template: - DELETE - /_template/<