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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 972113cb549d4057c85628d18b2b79b4f0b97876
4
- data.tar.gz: fe046926f235b1440f4558d5597db1d2d558dab8
3
+ metadata.gz: ef51c13b89fb37e37f5b7015c3cc47629e3a98af
4
+ data.tar.gz: d921e7ca331120e4a4976831cec26b629d2a157f
5
5
  SHA512:
6
- metadata.gz: 28d0814aa129eacf44f3cd00ac5f7d308458b88423da4f1f920402c7c9004e85d2b86be57f683ece706568d8cb86e64ef7adeed9523d60df2d5067d388e7c06b
7
- data.tar.gz: 5588b97d7fad6096edc625913b09bd826aec1f1bc31bd837f5a1827a82ca19beee8dc5e5fa750fbe071c4e70ac02929f8b46eb535c2f62d5465377276b83d7c0
6
+ metadata.gz: 9488a89c294b83d08ebe89195a545849d905bcd6ea8875f3457d15166e2a49817869e70fa037814ee3e94583f708ae936f3400cccaf7aeffc10d10f2707fe564
7
+ data.tar.gz: 7b4e288aea23b6e8dd63bc1753b661cf03cc56ec8e96293b8ea1a3f75edf372dd946ff3b5e0739cd55ddc5a7d414cfc164b894b298735c2bb4aa8e8e50c3b3cf
@@ -1,3 +1,7 @@
1
+ ## 0.1.5
2
+
3
+ - Adding ability for multiple ElasticSearch types for a single query
4
+
1
5
  ## 0.1.4
2
6
 
3
7
  - Adding mergeable options to multi_fields
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
- - Get codeclimate online
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(
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module Autocomplete
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
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
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-06-19 00:00:00.000000000 Z
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: '0'
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.6
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