es_query_builder 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fetch_es_data.rb +2 -2
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a1838cd288b76c74d37cbc4c6199e4eadd30ef8
4
- data.tar.gz: 76a7fb2124afa3408b1438bc02ff2e76d1921aeb
3
+ metadata.gz: fef139505248fdadeed170228ce7c1d77c535ac2
4
+ data.tar.gz: 119724d2631cefaae8163d50415989aabc53da06
5
5
  SHA512:
6
- metadata.gz: 73227dcb19043fc35af84edf55c8c1b9eaae72a09c066bd3e9850e866009ab384815d778ce14a3debeab793f0fb3f2163f846255ca8ce3200865c80a17c820e8
7
- data.tar.gz: d2a6823a4e719c9d51d022a4c141542a118078f8fab6c024d207262d4dfbfb840dc4d254fe7e2288f7ab56140d8376360d99aec2d51fd01ba2fcd69a365a655b
6
+ metadata.gz: 1de09225cb34842eb70f1bdbaf72da5e54518c36f280c37cdb901c9a0032e763af6d19dfd220a6783b2f6bb8962139522039d8f6e51f856273545ba2d9bb9a85
7
+ data.tar.gz: 0b9c618fe23a1a52351562a9366d6b3c1f2077570492a995cc0b07a78ed4d454ca54139c17c0e6696c11fb1222c186a27085c26c2e325fb2a907b4c32e2d3208
data/lib/fetch_es_data.rb CHANGED
@@ -18,7 +18,7 @@ class FetchEsData
18
18
  # @param extension [String] extension to Elastic seach path (eg. '_search', '_msearch')
19
19
  # @return [String, Hash]
20
20
  def fetch_shortlisted_data_from_es(query:, index_name:, type_name:, extension: '_search')
21
- uri = URI("http://#{@search_host}:#{@search_port}/#{index_name}/#{type_name}/#{extension}")
21
+ uri = URI("http://#{@search_host}:#{@search_port}/#{index_name}/#{extension}")
22
22
  req = Net::HTTP::Post.new(uri, initheader = {'Content-Type' =>'application/json'})
23
23
  req.body = "#{query.to_json}\n"
24
24
  res = Net::HTTP.start(uri.hostname, uri.port) do |http|
@@ -27,4 +27,4 @@ class FetchEsData
27
27
  body = JSON.parse(res.body) rescue {}
28
28
  return res.code, body
29
29
  end
30
- end
30
+ end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: es_query_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohib Yousuf
8
8
  - Anurag Agrawal
9
9
  - Supantha Samanta
10
10
  - Neeraj Joshi
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-01-11 00:00:00.000000000 Z
14
+ date: 2024-04-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -75,7 +75,7 @@ dependencies:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
77
  version: 3.5.0
78
- description:
78
+ description:
79
79
  email:
80
80
  - mohib.yousuf@hotmail.com
81
81
  - anuragagrawal117@gmail.com
@@ -170,7 +170,7 @@ homepage: https://github.com/elarahq/es.query.builder
170
170
  licenses:
171
171
  - MIT
172
172
  metadata: {}
173
- post_install_message:
173
+ post_install_message:
174
174
  rdoc_options: []
175
175
  require_paths:
176
176
  - lib
@@ -185,9 +185,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
187
  requirements: []
188
- rubyforge_project:
188
+ rubyforge_project:
189
189
  rubygems_version: 2.6.11
190
- signing_key:
190
+ signing_key:
191
191
  specification_version: 4
192
192
  summary: For Building Elastic Search Queries
193
193
  test_files: []