elastics-client 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/elastics/template.rb +4 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3c85e47b192b26252d922bfde85bddba6687d21
4
- data.tar.gz: 11b2cef66e849ead81fd78883a33abafcc7cf99e
3
+ metadata.gz: 934921575ac75c3c7ebaf859cf23313a8b08e3dd
4
+ data.tar.gz: 90d0bc2a54c207e232a3b411b8586d9ed35afa1a
5
5
  SHA512:
6
- metadata.gz: 2cdaaac4c50086addbc3b08da2ccdcd3db5698ce477d0f978f6c93b010600caa43406cbd8562de6ca3465fa17c5793a90d7716b0a5658d665395667d18939525
7
- data.tar.gz: 1370fbcd59daeca7417957912b103bc934270f7774b9528d4b61f589adf378b313185cc8eb8a80aa506b80051929a4e206e0ee17409d2d9cbe9b1773c047d483
6
+ metadata.gz: f1ead54a50186f5d0a88e30e692630ce63055a3aa20524c4efe91b2a9d547c9bb9b0b2b8b8612b4d85e8bb80080cbafc594dac70512aad2b00ee85beb076239b
7
+ data.tar.gz: 848953e084325a68509bc52a2dd71a40e503794ebf1c317cd4b19dbc003ff3b4d4568fe28bbbb9cc3a5ac9357fd985c6eea1441a4f5efb354022a7dac8f35226
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 1.3.3
@@ -69,11 +69,10 @@ module Elastics
69
69
  vars[:cleanable_query]) && Conf.http_client.raise_proc.call(response_vars[3])
70
70
  e = HttpError.new(response_vars[3], caller_line)
71
71
  e.to_hash['error'] =~ /^SearchPhaseExecutionException/
72
- # remove problematic characters in place
73
- (vars[:cleanable_query].is_a?(Hash) ?
74
- vars[:cleanable_query][:query] :
75
- vars[:cleanable_query]).tr!('"&|!(){}[]~^:+-\\', '')
76
- # if after the cleanup it is prunable, then we remove it now so #interpolate could use the eventual default
72
+ # remove problematic characters in place (# + - && || ! ( ) { } [ ] ^ " ~ * ? : \ /)
73
+ # see https://lucene.apache.org/core/5_5_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Escaping_Special_Characters
74
+ (vars[:cleanable_query].is_a?(Hash)? vars[:cleanable_query][:query] : vars[:cleanable_query]).tr!('+-&|!(){}[]^"~*?:\/', '')
75
+ # if after the cleanup it is prunable, then we remove it now so #interpolate could use the eventual default
77
76
  if Prunable::VALUES.include?(vars[:cleanable_query].is_a?(Hash) ?
78
77
  vars[:cleanable_query][:query] :
79
78
  vars[:cleanable_query])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastics-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Domizio Demichelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-01 00:00:00.000000000 Z
11
+ date: 2016-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json