elastics-client 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/elastics/template.rb +4 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 934921575ac75c3c7ebaf859cf23313a8b08e3dd
|
|
4
|
+
data.tar.gz: 90d0bc2a54c207e232a3b411b8586d9ed35afa1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1ead54a50186f5d0a88e30e692630ce63055a3aa20524c4efe91b2a9d547c9bb9b0b2b8b8612b4d85e8bb80080cbafc594dac70512aad2b00ee85beb076239b
|
|
7
|
+
data.tar.gz: 848953e084325a68509bc52a2dd71a40e503794ebf1c317cd4b19dbc003ff3b4d4568fe28bbbb9cc3a5ac9357fd985c6eea1441a4f5efb354022a7dac8f35226
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.
|
|
1
|
+
1.3.3
|
data/lib/elastics/template.rb
CHANGED
|
@@ -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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2016-11-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: multi_json
|