elasticsearch-autocomplete 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -2
- data/lib/elasticsearch/autocomplete/response.rb +1 -2
- data/lib/elasticsearch/autocomplete/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef51c13b89fb37e37f5b7015c3cc47629e3a98af
|
4
|
+
data.tar.gz: d921e7ca331120e4a4976831cec26b629d2a157f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9488a89c294b83d08ebe89195a545849d905bcd6ea8875f3457d15166e2a49817869e70fa037814ee3e94583f708ae936f3400cccaf7aeffc10d10f2707fe564
|
7
|
+
data.tar.gz: 7b4e288aea23b6e8dd63bc1753b661cf03cc56ec8e96293b8ea1a3f75edf372dd946ff3b5e0739cd55ddc5a7d414cfc164b894b298735c2bb4aa8e8e50c3b3cf
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
module Autocomplete
|
41
41
|
class ColorType < Type
|
42
42
|
# Value of ElasticSearch's _type
|
43
|
-
# => String
|
43
|
+
# => String || Array
|
44
44
|
def type
|
45
45
|
'color'
|
46
46
|
end
|
@@ -150,7 +150,10 @@ end
|
|
150
150
|
4. Push to the branch (`git push origin my-new-feature`)
|
151
151
|
5. Create new Pull Request
|
152
152
|
|
153
|
+
Any contributions are welcome. As of right now, a lot of these settings are just set in stone. I'd like to eventually have more in-depth customizable options.
|
154
|
+
|
153
155
|
## TODO
|
154
156
|
|
155
157
|
- Create generator for new types
|
156
|
-
-
|
158
|
+
- Change filters to a YAML Configuration
|
159
|
+
- Create generator that provides default configuration
|
@@ -37,8 +37,7 @@ module Elasticsearch
|
|
37
37
|
type = search_result['_type']
|
38
38
|
score = search_result['_score']
|
39
39
|
highlight = search_result['highlight']
|
40
|
-
|
41
|
-
returned_type = types.select{|t| t.type == type }.first
|
40
|
+
returned_type = types.select{|t| Array(t.type).include?(type) }.first
|
42
41
|
|
43
42
|
if returned_type
|
44
43
|
returned_type.mapped(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-autocomplete
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- s.podlecki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -141,15 +141,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
144
|
+
version: 1.9.3
|
145
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
147
|
- - ">="
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
|
-
rubyforge_project:
|
152
|
-
rubygems_version: 2.4.
|
151
|
+
rubyforge_project: "[none]"
|
152
|
+
rubygems_version: 2.4.8
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Autocomplete Helpers and Builder
|