eson-core 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/LICENSE.md +20 -0
  2. data/README.md +5 -0
  3. data/Rakefile +35 -0
  4. data/eson-core.gemspec +23 -0
  5. data/lib/eson/api.rb +63 -0
  6. data/lib/eson/chainable.rb +20 -0
  7. data/lib/eson/client.rb +253 -0
  8. data/lib/eson/error.rb +14 -0
  9. data/lib/eson/request.rb +113 -0
  10. data/lib/eson/shared/cluster/health.rb +16 -0
  11. data/lib/eson/shared/cluster/nodes.rb +15 -0
  12. data/lib/eson/shared/cluster/shutdown.rb +20 -0
  13. data/lib/eson/shared/cluster/state.rb +17 -0
  14. data/lib/eson/shared/cluster/stats.rb +15 -0
  15. data/lib/eson/shared/core/bulk.rb +26 -0
  16. data/lib/eson/shared/core/count.rb +63 -0
  17. data/lib/eson/shared/core/delete.rb +26 -0
  18. data/lib/eson/shared/core/delete_by_query.rb +50 -0
  19. data/lib/eson/shared/core/get.rb +19 -0
  20. data/lib/eson/shared/core/index.rb +33 -0
  21. data/lib/eson/shared/core/mget.rb +16 -0
  22. data/lib/eson/shared/core/more_like_this.rb +52 -0
  23. data/lib/eson/shared/core/msearch.rb +37 -0
  24. data/lib/eson/shared/core/percolate.rb +18 -0
  25. data/lib/eson/shared/core/search.rb +62 -0
  26. data/lib/eson/shared/core/simple_search.rb +35 -0
  27. data/lib/eson/shared/indices/aliases.rb +24 -0
  28. data/lib/eson/shared/indices/analyze.rb +11 -0
  29. data/lib/eson/shared/indices/clear_cache.rb +13 -0
  30. data/lib/eson/shared/indices/close_index.rb +9 -0
  31. data/lib/eson/shared/indices/create_index.rb +13 -0
  32. data/lib/eson/shared/indices/delete_index.rb +9 -0
  33. data/lib/eson/shared/indices/delete_mapping.rb +11 -0
  34. data/lib/eson/shared/indices/delete_template.rb +9 -0
  35. data/lib/eson/shared/indices/exists.rb +9 -0
  36. data/lib/eson/shared/indices/flush.rb +11 -0
  37. data/lib/eson/shared/indices/get_mapping.rb +16 -0
  38. data/lib/eson/shared/indices/get_settings.rb +9 -0
  39. data/lib/eson/shared/indices/get_template.rb +9 -0
  40. data/lib/eson/shared/indices/open_index.rb +9 -0
  41. data/lib/eson/shared/indices/optimize.rb +15 -0
  42. data/lib/eson/shared/indices/put_mapping.rb +15 -0
  43. data/lib/eson/shared/indices/put_template.rb +10 -0
  44. data/lib/eson/shared/indices/refresh.rb +16 -0
  45. data/lib/eson/shared/indices/segments.rb +8 -0
  46. data/lib/eson/shared/indices/snapshot.rb +9 -0
  47. data/lib/eson/shared/indices/stats.rb +19 -0
  48. data/lib/eson/shared/indices/status.rb +9 -0
  49. data/lib/eson/shared/indices/update_settings.rb +12 -0
  50. data/lib/eson-core.rb +49 -0
  51. metadata +135 -0
@@ -0,0 +1,19 @@
1
+ module Eson
2
+ module Shared
3
+ module IndexStats
4
+ extend API
5
+ multi_index true
6
+
7
+ parameters :docs,
8
+ :store,
9
+ :indexing,
10
+ :get,
11
+ :search,
12
+ :merge,
13
+ :flush,
14
+ :refresh,
15
+ :clear,
16
+ :types
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,9 @@
1
+ module Eson
2
+ module Shared
3
+ module Status
4
+ extend API
5
+
6
+ multi_index true
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ module Eson
2
+ module Shared
3
+ module UpdateSettings
4
+ extend API
5
+
6
+ parameters :settings
7
+ source_param :settings
8
+
9
+ multi_index true
10
+ end
11
+ end
12
+ end
data/lib/eson-core.rb ADDED
@@ -0,0 +1,49 @@
1
+ require 'multi_json'
2
+
3
+ require 'eson/client'
4
+ require 'eson/request'
5
+ require 'eson/chainable'
6
+ require 'eson/api'
7
+ require 'eson/error'
8
+
9
+ require 'eson/shared/core/index'
10
+ require 'eson/shared/core/get'
11
+ require 'eson/shared/core/delete'
12
+ require 'eson/shared/core/search'
13
+ require 'eson/shared/core/bulk'
14
+ require 'eson/shared/core/percolate'
15
+ require 'eson/shared/core/simple_search'
16
+ require 'eson/shared/core/more_like_this'
17
+ require 'eson/shared/core/msearch'
18
+ require 'eson/shared/core/mget'
19
+ require 'eson/shared/core/delete_by_query'
20
+
21
+ require 'eson/shared/cluster/health'
22
+ require 'eson/shared/cluster/state'
23
+ require 'eson/shared/cluster/nodes'
24
+ require 'eson/shared/cluster/stats'
25
+ require 'eson/shared/cluster/shutdown'
26
+
27
+ require 'eson/shared/indices/aliases'
28
+ require 'eson/shared/indices/analyze'
29
+ require 'eson/shared/indices/clear_cache'
30
+ require 'eson/shared/indices/close_index'
31
+ require 'eson/shared/indices/create_index'
32
+ require 'eson/shared/indices/delete_index'
33
+ require 'eson/shared/indices/delete_mapping'
34
+ require 'eson/shared/indices/flush'
35
+ require 'eson/shared/indices/get_mapping'
36
+ require 'eson/shared/indices/get_settings'
37
+ require 'eson/shared/indices/open_index'
38
+ require 'eson/shared/indices/optimize'
39
+ require 'eson/shared/indices/put_mapping'
40
+ require 'eson/shared/indices/refresh'
41
+ require 'eson/shared/indices/snapshot'
42
+ require 'eson/shared/indices/status'
43
+ require 'eson/shared/indices/put_template'
44
+ require 'eson/shared/indices/get_template'
45
+ require 'eson/shared/indices/delete_template'
46
+ require 'eson/shared/indices/update_settings'
47
+ require 'eson/shared/indices/exists'
48
+ require 'eson/shared/indices/stats'
49
+ require 'eson/shared/indices/segments'
metadata ADDED
@@ -0,0 +1,135 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: eson-core
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Florian Gilcher
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: multi_json
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: elasticsearch-node
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: ! "A modular client for ElasticSearch. It provides\n an implementation
47
+ of the Query language as well as multiple client implementations\n for HTTP and
48
+ native access."
49
+ email:
50
+ - florian.gilcher@asquera.de
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - LICENSE.md
56
+ - README.md
57
+ - Rakefile
58
+ - eson-core.gemspec
59
+ - lib/eson-core.rb
60
+ - lib/eson/api.rb
61
+ - lib/eson/chainable.rb
62
+ - lib/eson/client.rb
63
+ - lib/eson/error.rb
64
+ - lib/eson/request.rb
65
+ - lib/eson/shared/cluster/health.rb
66
+ - lib/eson/shared/cluster/nodes.rb
67
+ - lib/eson/shared/cluster/shutdown.rb
68
+ - lib/eson/shared/cluster/state.rb
69
+ - lib/eson/shared/cluster/stats.rb
70
+ - lib/eson/shared/core/bulk.rb
71
+ - lib/eson/shared/core/count.rb
72
+ - lib/eson/shared/core/delete.rb
73
+ - lib/eson/shared/core/delete_by_query.rb
74
+ - lib/eson/shared/core/get.rb
75
+ - lib/eson/shared/core/index.rb
76
+ - lib/eson/shared/core/mget.rb
77
+ - lib/eson/shared/core/more_like_this.rb
78
+ - lib/eson/shared/core/msearch.rb
79
+ - lib/eson/shared/core/percolate.rb
80
+ - lib/eson/shared/core/search.rb
81
+ - lib/eson/shared/core/simple_search.rb
82
+ - lib/eson/shared/indices/aliases.rb
83
+ - lib/eson/shared/indices/analyze.rb
84
+ - lib/eson/shared/indices/clear_cache.rb
85
+ - lib/eson/shared/indices/close_index.rb
86
+ - lib/eson/shared/indices/create_index.rb
87
+ - lib/eson/shared/indices/delete_index.rb
88
+ - lib/eson/shared/indices/delete_mapping.rb
89
+ - lib/eson/shared/indices/delete_template.rb
90
+ - lib/eson/shared/indices/exists.rb
91
+ - lib/eson/shared/indices/flush.rb
92
+ - lib/eson/shared/indices/get_mapping.rb
93
+ - lib/eson/shared/indices/get_settings.rb
94
+ - lib/eson/shared/indices/get_template.rb
95
+ - lib/eson/shared/indices/open_index.rb
96
+ - lib/eson/shared/indices/optimize.rb
97
+ - lib/eson/shared/indices/put_mapping.rb
98
+ - lib/eson/shared/indices/put_template.rb
99
+ - lib/eson/shared/indices/refresh.rb
100
+ - lib/eson/shared/indices/segments.rb
101
+ - lib/eson/shared/indices/snapshot.rb
102
+ - lib/eson/shared/indices/stats.rb
103
+ - lib/eson/shared/indices/status.rb
104
+ - lib/eson/shared/indices/update_settings.rb
105
+ homepage: ''
106
+ licenses: []
107
+ post_install_message:
108
+ rdoc_options: []
109
+ require_paths:
110
+ - lib
111
+ required_ruby_version: !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ! '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ segments:
118
+ - 0
119
+ hash: -2900552333141040798
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ segments:
127
+ - 0
128
+ hash: -2900552333141040798
129
+ requirements: []
130
+ rubyforge_project:
131
+ rubygems_version: 1.8.21
132
+ signing_key:
133
+ specification_version: 3
134
+ summary: A modular client for ElasticSearch - Core components
135
+ test_files: []