module Flex

Constants

Conf

shorter alias

Configuration
LIB_PATHS
Prunable
VERSION
Vars

shorter alias

Public Class Methods

add_index_alias(*vars) click to toggle source

########## Flex.add_index_alias ##########


Flex::Template


add_index_alias:

  • PUT

  • /<<index>>/_alias/<<alias>>

Usage: Flex.add_index_alias :alias => alias, # required

:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 453
def Flex.add_index_alias(*vars)
  ## this is a stub, used for reference
  super
end
analyze_index(*vars) click to toggle source

########## Flex.analyze_index ##########


Flex::Template


analyze_index:

  • GET

  • /<<index>>/_analyze

Usage: Flex.analyze_index :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 506
def Flex.analyze_index(*vars)
  ## this is a stub, used for reference
  super
end
close_index(*vars) click to toggle source

########## Flex.close_index ##########


Flex::Template


close_index:

  • POST

  • /<<index>>/_close

Usage: Flex.close_index :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 606
def Flex.close_index(*vars)
  ## this is a stub, used for reference
  super
end
cluster_health(*vars) click to toggle source

########## Flex.cluster_health ##########


Flex::Template


cluster_health:

  • GET

  • /_cluster/health/<<index>>

Usage: Flex.cluster_health :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 1123
def Flex.cluster_health(*vars)
  ## this is a stub, used for reference
  super
end
cluster_nodes_hot_threads(*vars) click to toggle source

########## Flex.cluster_nodes_hot_threads ##########


Flex::Template


cluster_nodes_hot_threads:

  • GET

  • /_nodes/<<nodes= ~ >>/hot_threads

Usage: Flex.cluster_nodes_hot_threads :nodes => nil

Calls superclass method
# File lib/flex/api_stubs.rb, line 1244
def Flex.cluster_nodes_hot_threads(*vars)
  ## this is a stub, used for reference
  super
end
cluster_nodes_info(*vars) click to toggle source

########## Flex.cluster_nodes_info ##########


Flex::Template


cluster_nodes_info:

  • GET

  • /_nodes/<<nodes= ~ >>/<<endpoint= ~ >>

Usage: Flex.cluster_nodes_info :nodes => nil,

:endpoint => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 1192
def Flex.cluster_nodes_info(*vars)
  ## this is a stub, used for reference
  super
end
cluster_nodes_shutdown(*vars) click to toggle source

########## Flex.cluster_nodes_shutdown ##########


Flex::Template


cluster_nodes_shutdown:

  • POST

  • /_cluster/nodes/<<nodes= ~ >>/_shutdown

Usage: Flex.cluster_nodes_shutdown :nodes => nil

Calls superclass method
# File lib/flex/api_stubs.rb, line 1227
def Flex.cluster_nodes_shutdown(*vars)
  ## this is a stub, used for reference
  super
end
cluster_nodes_stats(*vars) click to toggle source

########## Flex.cluster_nodes_stats ##########


Flex::Template


cluster_nodes_stats:

  • GET

  • /_nodes/<<nodes= ~ >>/stats/<<endpoint= ~ >>

Usage: Flex.cluster_nodes_stats :nodes => nil,

:endpoint => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 1210
def Flex.cluster_nodes_stats(*vars)
  ## this is a stub, used for reference
  super
end
cluster_reroute(*vars) click to toggle source

########## Flex.cluster_reroute ##########


Flex::Template


cluster_reroute:

  • POST

  • /_cluster/reroute

Usage: Flex.cluster_reroute

Calls superclass method
# File lib/flex/api_stubs.rb, line 1261
def Flex.cluster_reroute(*vars)
  ## this is a stub, used for reference
  super
end
cluster_state(*vars) click to toggle source

########## Flex.cluster_state ##########


Flex::Template


cluster_state:

  • GET

  • /_cluster/state

Usage: Flex.cluster_state

Calls superclass method
# File lib/flex/api_stubs.rb, line 1140
def Flex.cluster_state(*vars)
  ## this is a stub, used for reference
  super
end
count(*vars) click to toggle source

########## Flex.count ##########


Flex::Template


count:

  • GET

  • /<<index>>/<<type>>/_count

Usage: Flex.count :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 264
def Flex.count(*vars)
  ## this is a stub, used for reference
  super
end
create_index(*vars) click to toggle source

########## Flex.create_index ##########


Flex::Template


create_index:

  • PUT

  • /<<index>>

  • settings:

    number_of_shards: <<number_of_shards= 5 >>
    number_of_replicas: <<number_of_replicas= 1 >>

Usage: Flex.create_index :index => “flex_test_index”,

:number_of_shards   => 5,
:number_of_replicas => 1
Calls superclass method
# File lib/flex/api_stubs.rb, line 550
def Flex.create_index(*vars)
  ## this is a stub, used for reference
  super
end
delete(*vars) click to toggle source

########## Flex.delete ##########


Flex::Template


delete:

  • DELETE

  • /<<index>>/<<type>>/<<id>>

Usage: Flex.delete :id => id, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 78
def Flex.delete(*vars)
  ## this is a stub, used for reference
  super
end
delete_by_query(*vars) click to toggle source

########## Flex.delete_by_query ##########


Flex::Template


delete_by_query:

  • DELETE

  • /<<index>>/<<type>>/_query

Usage: Flex.delete_by_query :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 282
def Flex.delete_by_query(*vars)
  ## this is a stub, used for reference
  super
end
delete_index(*vars) click to toggle source

########## Flex.delete_index ##########


Flex::Template


delete_index:

  • DELETE

  • /<<index>>

Usage: Flex.delete_index :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 589
def Flex.delete_index(*vars)
  ## this is a stub, used for reference
  super
end
delete_index_alias(*vars) click to toggle source

########## Flex.delete_index_alias ##########


Flex::Template


delete_index_alias:

  • DELETE

  • /<<index>>/_alias/<<alias>>

Usage: Flex.delete_index_alias :alias => alias, # required

:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 471
def Flex.delete_index_alias(*vars)
  ## this is a stub, used for reference
  super
end
delete_index_mapping(*vars) click to toggle source

########## Flex.delete_index_mapping ##########


Flex::Template


delete_index_mapping:

  • DELETE

  • /<<index>>/<<type>>

Usage: Flex.delete_index_mapping :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 753
def Flex.delete_index_mapping(*vars)
  ## this is a stub, used for reference
  super
end
delete_index_template(*vars) click to toggle source

########## Flex.delete_index_template ##########


Flex::Template


delete_index_template:

  • DELETE

  • /_template/<<template>>

Usage: Flex.delete_index_template :template => template # required

Calls superclass method
# File lib/flex/api_stubs.rb, line 890
def Flex.delete_index_template(*vars)
  ## this is a stub, used for reference
  super
end
delete_index_warmer(*vars) click to toggle source

########## Flex.delete_index_warmer ##########


Flex::Template


delete_index_warmer:

  • DELETE

  • /<<index>>/_warmer/<<warmer= ~ >>

Usage: Flex.delete_index_warmer :index => “flex_test_index”,

:warmer => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 944
def Flex.delete_index_warmer(*vars)
  ## this is a stub, used for reference
  super
end
delete_mapping(*vars) click to toggle source

########## Flex.delete_mapping ##########


Flex::Template


delete_mapping:

  • DELETE

  • /<<index>>/<<type>>

Usage: Flex.delete_mapping :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 771
def Flex.delete_mapping(*vars)
  ## this is a stub, used for reference
  super
end
delete_percolator(*vars) click to toggle source

########## Flex.delete_percolator ##########


Flex::Template


delete_percolator:

  • DELETE

  • /_percolator/<<index>>/<<percolator>>

Usage: Flex.delete_percolator :percolator => percolator, # required

:index      => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 228
def Flex.delete_percolator(*vars)
  ## this is a stub, used for reference
  super
end
exist?(*vars) click to toggle source

########## Flex.exist? ##########


Flex::Template


exist?:

  • HEAD

  • /<<index>>

Usage: Flex.exist? :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 1085
def Flex.exist?(*vars)
  ## this is a stub, used for reference
  super
end
explain(*vars) click to toggle source

########## Flex.explain ##########


Flex::Template


explain:

  • GET

  • /<<index>>/<<type>>/<<id>>/_explain

Usage: Flex.explain :id => id, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 357
def Flex.explain(*vars)
  ## this is a stub, used for reference
  super
end
flush_index(*vars) click to toggle source

########## Flex.flush_index ##########


Flex::Template


flush_index:

  • POST

  • /<<index>>/_flush

Usage: Flex.flush_index :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 822
def Flex.flush_index(*vars)
  ## this is a stub, used for reference
  super
end
gateway_snapshot(*vars) click to toggle source

########## Flex.gateway_snapshot ##########


Flex::Template


gateway_snapshot:

  • POST

  • /<<index>>/_gateway/snapshot

Usage: Flex.gateway_snapshot :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 839
def Flex.gateway_snapshot(*vars)
  ## this is a stub, used for reference
  super
end
get(*vars) click to toggle source

########## Flex.get ##########


Flex::Template


get:

  • GET

  • /<<index>>/<<type>>/<<id>>

Usage: Flex.get :id => id, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 116
def Flex.get(*vars)
  ## this is a stub, used for reference
  super
end
get_cluster_settings(*vars) click to toggle source

########## Flex.get_cluster_settings ##########


Flex::Template


get_cluster_settings:

  • GET

  • /_cluster/settings

Usage: Flex.get_cluster_settings

Calls superclass method
# File lib/flex/api_stubs.rb, line 1174
def Flex.get_cluster_settings(*vars)
  ## this is a stub, used for reference
  super
end
get_index_alias(*vars) click to toggle source

########## Flex.get_index_alias ##########


Flex::Template


get_index_alias:

  • GET

  • /<<index>>/_alias/<<alias= ‘*’ >>

Usage: Flex.get_index_alias :index => “flex_test_index”,

:alias => "*"
Calls superclass method
# File lib/flex/api_stubs.rb, line 489
def Flex.get_index_alias(*vars)
  ## this is a stub, used for reference
  super
end
get_index_aliases(*vars) click to toggle source

########## Flex.get_index_aliases ##########


Flex::Template


get_index_aliases:

  • GET

  • /<<index>>/_aliases

Usage: Flex.get_index_aliases :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 435
def Flex.get_index_aliases(*vars)
  ## this is a stub, used for reference
  super
end
get_index_mapping(*vars) click to toggle source

########## Flex.get_index_mapping ##########


Flex::Template


get_index_mapping:

  • GET

  • /<<index>>/<<type>>/_mapping

Usage: Flex.get_index_mapping :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 675
def Flex.get_index_mapping(*vars)
  ## this is a stub, used for reference
  super
end
get_index_settings(*vars) click to toggle source

########## Flex.get_index_settings ##########


Flex::Template


get_index_settings:

  • GET

  • /<<index>>/_settings

Usage: Flex.get_index_settings :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 640
def Flex.get_index_settings(*vars)
  ## this is a stub, used for reference
  super
end
get_index_template(*vars) click to toggle source

########## Flex.get_index_template ##########


Flex::Template


get_index_template:

  • GET

  • /_template/<<template>>

Usage: Flex.get_index_template :template => template # required

Calls superclass method
# File lib/flex/api_stubs.rb, line 907
def Flex.get_index_template(*vars)
  ## this is a stub, used for reference
  super
end
get_index_warmer(*vars) click to toggle source

########## Flex.get_index_warmer ##########


Flex::Template


get_index_warmer:

  • GET

  • /<<index>>/_warmer/<<warmer= ~ >>

Usage: Flex.get_index_warmer :index => “flex_test_index”,

:warmer => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 962
def Flex.get_index_warmer(*vars)
  ## this is a stub, used for reference
  super
end
get_mapping(*vars) click to toggle source

########## Flex.get_mapping ##########


Flex::Template


get_mapping:

  • GET

  • /<<index>>/<<type>>/_mapping

Usage: Flex.get_mapping :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 693
def Flex.get_mapping(*vars)
  ## this is a stub, used for reference
  super
end
get_settings(*vars) click to toggle source

########## Flex.get_settings ##########


Flex::Template


get_settings:

  • GET

  • /<<index>>/_settings

Usage: Flex.get_settings :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 657
def Flex.get_settings(*vars)
  ## this is a stub, used for reference
  super
end
get_source(*vars) click to toggle source

########## Flex.get_source ##########


Flex::Template


get_source:

  • GET

  • /<<index>>/<<type>>/<<id>>/_source

Usage: Flex.get_source :id => id, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 135
def Flex.get_source(*vars)
  ## this is a stub, used for reference
  super
end
index_clearcache(*vars) click to toggle source

########## Flex.index_clearcache ##########


Flex::Template


index_clearcache:

  • POST

  • /<<index>>/_cache/clear

Usage: Flex.index_clearcache :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 1051
def Flex.index_clearcache(*vars)
  ## this is a stub, used for reference
  super
end
index_segments(*vars) click to toggle source

########## Flex.index_segments ##########


Flex::Template


index_segments:

  • GET

  • /<<index>>/_segments

Usage: Flex.index_segments :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 1034
def Flex.index_segments(*vars)
  ## this is a stub, used for reference
  super
end
index_stats(*vars) click to toggle source

########## Flex.index_stats ##########


Flex::Template


index_stats:

  • GET

  • /<<index>>/_stats/<<endpoint= ~ >>/<<names= ~ >>

Usage: Flex.index_stats :index => “flex_test_index”,

:endpoint => nil,
:names    => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 981
def Flex.index_stats(*vars)
  ## this is a stub, used for reference
  super
end
index_status(*vars) click to toggle source

########## Flex.index_status ##########


Flex::Template


index_status:

  • GET

  • /<<index>>/_status

Usage: Flex.index_status :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 1017
def Flex.index_status(*vars)
  ## this is a stub, used for reference
  super
end
indices_exists(*vars) click to toggle source

########## Flex.indices_exists ##########


Flex::Template


indices_exists:

  • HEAD

  • /<<index>>

Usage: Flex.indices_exists :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 1068
def Flex.indices_exists(*vars)
  ## this is a stub, used for reference
  super
end
match_all(*vars) click to toggle source

########## Flex.match_all ##########


Flex::Template


match_all:

  • GET

  • /<<index>>/<<type>>/_search

  • query:

    match_all: {}

Usage: Flex.match_all :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 377
def Flex.match_all(*vars)
  ## this is a stub, used for reference
  super
end
mlt(*vars) click to toggle source

########## Flex.mlt ##########


Flex::Template


mlt:

  • GET

  • /<<index>>/<<type>>/<<id>>/_mlt

Usage: Flex.mlt :id => id, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 320
def Flex.mlt(*vars)
  ## this is a stub, used for reference
  super
end
more_like_this(*vars) click to toggle source

########## Flex.more_like_this ##########


Flex::Template


more_like_this:

  • GET

  • /<<index>>/<<type>>/<<id>>/_mlt

Usage: Flex.more_like_this :id => id, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 301
def Flex.more_like_this(*vars)
  ## this is a stub, used for reference
  super
end
multi_get(*vars) click to toggle source

########## Flex.multi_get ##########


Flex::Template


multi_get:

  • GET

  • /<<index>>/<<type>>/_mget

  • ids: << ids >>

Usage: Flex.multi_get :ids => ids, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 155
def Flex.multi_get(*vars)
  ## this is a stub, used for reference
  super
end
open_index(*vars) click to toggle source

########## Flex.open_index ##########


Flex::Template


open_index:

  • POST

  • /<<index>>/_close

Usage: Flex.open_index :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 623
def Flex.open_index(*vars)
  ## this is a stub, used for reference
  super
end
optimize_index(*vars) click to toggle source

########## Flex.optimize_index ##########


Flex::Template


optimize_index:

  • POST

  • /<<index>>/_optimize

Usage: Flex.optimize_index :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 805
def Flex.optimize_index(*vars)
  ## this is a stub, used for reference
  super
end
percolate(*vars) click to toggle source

########## Flex.percolate ##########


Flex::Template


percolate:

  • GET

  • /<<index>>/<<type>>/_percolate

Usage: Flex.percolate :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 192
def Flex.percolate(*vars)
  ## this is a stub, used for reference
  super
end
post_bulk_string(*vars) click to toggle source

########## Flex.post_bulk_string ##########


Flex::Template


post_bulk_string:

  • POST

  • /_bulk

  • << bulk_string >>

Usage: Flex.bulk :bulk_string => bulk_string # required

Calls superclass method
# File lib/flex/api_stubs.rb, line 246
def Flex.post_bulk_string(*vars)
  ## this is a stub, used for reference
  super
end
post_index(*vars) click to toggle source

########## Flex.post_index ##########


Flex::Template


post_index:

  • POST

  • /<<index>>

  • settings:

    number_of_shards: <<number_of_shards= 5 >>
    number_of_replicas: <<number_of_replicas= 1 >>

Usage: Flex.post_index :index => “flex_test_index”,

:number_of_shards   => 5,
:number_of_replicas => 1
Calls superclass method
# File lib/flex/api_stubs.rb, line 572
def Flex.post_index(*vars)
  ## this is a stub, used for reference
  super
end
post_index_aliases(*vars) click to toggle source

########## Flex.post_index_aliases ##########


Flex::Template


post_index_aliases:

  • POST

  • /_aliases

Usage: Flex.post_index_aliases

Calls superclass method
# File lib/flex/api_stubs.rb, line 418
def Flex.post_index_aliases(*vars)
  ## this is a stub, used for reference
  super
end
post_store(*vars) click to toggle source

########## Flex.post_store ##########


Flex::Template


post_store:

  • POST

  • /<<index>>/<<type>>

Usage: Flex.post_store :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 59
def Flex.post_store(*vars)
  ## this is a stub, used for reference
  super
end
put_cluster_settings(*vars) click to toggle source

########## Flex.put_cluster_settings ##########


Flex::Template


put_cluster_settings:

  • PUT

  • /_cluster/settings

Usage: Flex.put_cluster_settings

Calls superclass method
# File lib/flex/api_stubs.rb, line 1157
def Flex.put_cluster_settings(*vars)
  ## this is a stub, used for reference
  super
end
put_index(*vars) click to toggle source

########## Flex.put_index ##########


Flex::Template


put_index:

  • PUT

  • /<<index>>

  • settings:

    number_of_shards: <<number_of_shards= 5 >>
    number_of_replicas: <<number_of_replicas= 1 >>

Usage: Flex.put_index :index => “flex_test_index”,

:number_of_shards   => 5,
:number_of_replicas => 1
Calls superclass method
# File lib/flex/api_stubs.rb, line 528
def Flex.put_index(*vars)
  ## this is a stub, used for reference
  super
end
put_index_mapping(*vars) click to toggle source

########## Flex.put_index_mapping ##########


Flex::Template


put_index_mapping:

  • PUT

  • /<<index>>/<<type>>/_mapping

  • <<type>>:

    properties: <<properties>>

Usage: Flex.put_index_mapping :properties => properties, # required

:type       => nil,
:index      => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 714
def Flex.put_index_mapping(*vars)
  ## this is a stub, used for reference
  super
end
put_index_template(*vars) click to toggle source

########## Flex.put_index_template ##########


Flex::Template


put_index_template:

  • PUT

  • /_template/<<template>>

Usage: Flex.put_index_template :template => template # required

Calls superclass method
# File lib/flex/api_stubs.rb, line 873
def Flex.put_index_template(*vars)
  ## this is a stub, used for reference
  super
end
put_index_warmer(*vars) click to toggle source

########## Flex.put_index_warmer ##########


Flex::Template


put_index_warmer:

  • PUT

  • /<<index>>/<<type>>/_warmer/<<warmer>>

Usage: Flex.put_index_warmer :warmer => warmer, # required

:type   => nil,
:index  => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 926
def Flex.put_index_warmer(*vars)
  ## this is a stub, used for reference
  super
end
put_mapping(*vars) click to toggle source

########## Flex.put_mapping ##########


Flex::Template


put_mapping:

  • PUT

  • /<<index>>/<<type>>/_mapping

  • <<type>>:

    properties: <<properties>>

Usage: Flex.put_mapping :properties => properties, # required

:type       => nil,
:index      => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 735
def Flex.put_mapping(*vars)
  ## this is a stub, used for reference
  super
end
put_percolator(*vars) click to toggle source

########## Flex.put_percolator ##########


Flex::Template


put_percolator:

  • PUT

  • /_percolator/<<index>>/<<percolator>>

Usage: Flex.put_percolator :percolator => percolator, # required

:index      => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 210
def Flex.put_percolator(*vars)
  ## this is a stub, used for reference
  super
end
put_store(*vars) click to toggle source

########## Flex.put_store ##########


Flex::Template


put_store:

  • PUT

  • /<<index>>/<<type>>/<<id>>

Usage: Flex.put_store :id => id, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 41
def Flex.put_store(*vars)
  ## this is a stub, used for reference
  super
end
refresh_index(*vars) click to toggle source

########## Flex.refresh_index ##########


Flex::Template


refresh_index:

  • POST

  • /<<index>>/_refresh

Usage: Flex.refresh_index :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 788
def Flex.refresh_index(*vars)
  ## this is a stub, used for reference
  super
end
remove(*vars) click to toggle source

########## Flex.remove ##########


Flex::Template


remove:

  • DELETE

  • /<<index>>/<<type>>/<<id>>

Usage: Flex.remove :id => id, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 97
def Flex.remove(*vars)
  ## this is a stub, used for reference
  super
end
search_by_id(*vars) click to toggle source

########## Flex.search_by_id ##########


Flex::Template


search_by_id:

  • GET

  • /<<index>>/<<type>>/_search

  • query:

    term:
      _id: <<id>>

Usage: Flex.search_by_id :id => id, # required

:type    => nil,
:index   => "flex_test_index",
Calls superclass method
# File lib/flex/api_stubs.rb, line 399
def Flex.search_by_id(*vars)
  ## this is a stub, used for reference
  super
end
stats(*vars) click to toggle source

########## Flex.stats ##########


Flex::Template


stats:

  • GET

  • /<<index>>/_stats/<<endpoint= ~ >>/<<names= ~ >>

Usage: Flex.stats :index => “flex_test_index”,

:endpoint => nil,
:names    => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 1000
def Flex.stats(*vars)
  ## this is a stub, used for reference
  super
end
store(*vars) click to toggle source

########## Flex.store ##########


Flex::Template


store:

  • PUT

  • /<<index>>/<<type>>/<<id>>

Usage: Flex.store :id => id, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 22
def Flex.store(*vars)
  ## this is a stub, used for reference
  super
end
types_exists(*vars) click to toggle source

########## Flex.types_exists ##########


Flex::Template


types_exists:

  • HEAD

  • /<<index>>/<<type>>

Usage: Flex.types_exists :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 1103
def Flex.types_exists(*vars)
  ## this is a stub, used for reference
  super
end
update(*vars) click to toggle source

########## Flex.update ##########


Flex::Template


update:

  • POST

  • /<<index>>/<<type>>/<<id>>/_update

Usage: Flex.update :id => id, # required

:type  => nil,
:index => "flex_test_index"
Calls superclass method
# File lib/flex/api_stubs.rb, line 174
def Flex.update(*vars)
  ## this is a stub, used for reference
  super
end
update_index_settings(*vars) click to toggle source

########## Flex.update_index_settings ##########


Flex::Template


update_index_settings:

  • PUT

  • /<<index>>/_settings

Usage: Flex.update_index_settings :index => “flex_test_index”

Calls superclass method
# File lib/flex/api_stubs.rb, line 856
def Flex.update_index_settings(*vars)
  ## this is a stub, used for reference
  super
end
validate(*vars) click to toggle source

########## Flex.validate ##########


Flex::Template


validate:

  • GET

  • /<<index>>/<<type>>/_validate/query

Usage: Flex.validate :index => “flex_test_index”,

:type  => nil
Calls superclass method
# File lib/flex/api_stubs.rb, line 338
def Flex.validate(*vars)
  ## this is a stub, used for reference
  super
end

Public Instance Methods

base_uri() click to toggle source

temprary deprecation warnings

# File lib/flex/deprecation.rb, line 59
def base_uri
  Deprecation.warn 'Flex::Configuration.base_uri', 'Flex::Configuration.http_client.base_uri'
  http_client.base_uri
end
base_uri=(val) click to toggle source
# File lib/flex/deprecation.rb, line 63
def base_uri=(val)
  Deprecation.warn 'Flex::Configuration.base_uri=', 'Flex::Configuration.http_client.base_uri='
  http_client.base_uri = val
end
bulk(*vars) click to toggle source
# File lib/flex/deprecation.rb, line 48
def bulk(*vars)
  Deprecation.warn 'Flex.bulk(:lines => lines_bulk_string)', 'Flex.post_bulk_string(:bulk_string => lines_bulk_string)'
  vars = Vars.new(*vars)
  post_bulk_string(:bulk_string => vars[:lines])
end
configure() { |self| ... } click to toggle source
# File lib/flex/configuration.rb, line 20
def configure
  yield self
end
delete_collection(collection, options={}) click to toggle source
# File lib/flex/deprecation.rb, line 43
def delete_collection(collection, options={})
  Deprecation.warn 'Flex.delete_collection(collection)', 'Flex.post_bulk_collection(collection, :action => "delete")'
  post_bulk_collection(collection, options.merge(:action => 'delete'))
end
http_client_options() click to toggle source
# File lib/flex/deprecation.rb, line 67
def http_client_options
  Deprecation.warn 'Flex::Configuration.http_client_options', 'Flex::Configuration.http_client.options'
  http_client.options
end
http_client_options=(val) click to toggle source
# File lib/flex/deprecation.rb, line 71
def http_client_options=(val)
  Deprecation.warn 'Flex::Configuration.http_client_options=', 'Flex::Configuration.http_client.options='
  http_client.options = val
end
import_collection(collection, options={}) click to toggle source
# File lib/flex/deprecation.rb, line 38
def import_collection(collection, options={})
  Deprecation.warn 'Flex.import_collection', 'Flex.post_bulk_collection'
  post_bulk_collection(collection, options.merge(:action => 'index'))
end
info(*names) click to toggle source

Deprecation of Flex methods ###

# File lib/flex/deprecation.rb, line 28
def info(*names)
  Deprecation.warn 'Flex.info', 'Flex.doc'
  doc *names
end
process_bulk(options={}) click to toggle source
# File lib/flex/deprecation.rb, line 33
def process_bulk(options={})
  Deprecation.warn 'Flex.process_bulk(:collection => collection)', 'Flex.post_bulk_collection(collection, options)'
  post_bulk_collection(options.delete(:collection), options)
end
raise_proc() click to toggle source
# File lib/flex/deprecation.rb, line 75
def raise_proc
  Deprecation.warn 'Flex::Configuration.raise_proc', 'Flex::Configuration.http_client.raise_proc'
  http_client.raise_proc
end
raise_proc=(val) click to toggle source
# File lib/flex/deprecation.rb, line 79
def raise_proc=(val)
  Deprecation.warn 'Flex::Configuration.raise_proc=', 'Flex::Configuration.http_client.raise_proc='
  http_client.raise_proc = val
end