gummi 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,9 +6,10 @@ module Gummi
6
6
  include Gummi::DbLayer::Document::Search::Searching
7
7
 
8
8
  attribute :query_string, Gummi::DbLayer::Fields::SanitizedString
9
- attribute :query_filters, Array[Hash], default: []
10
- attribute :facets, Hash, default: {}
11
- attribute :sort, Hash, default: {}
9
+ attribute :query_fields, Array[String], default: ["_all"]
10
+ attribute :query_filters, Array[Hash], default: []
11
+ attribute :facets, Hash, default: {}
12
+ attribute :sort, Hash, default: {}
12
13
 
13
14
  def to_client_args
14
15
  args = super
@@ -19,7 +20,7 @@ module Gummi
19
20
 
20
21
  def query
21
22
  if query_string.present?
22
- {query_string: { query: query_string}}
23
+ {query_string: { query: query_string, fields: query_fields }}
23
24
  else
24
25
  {match_all: {}}
25
26
  end
@@ -81,7 +81,7 @@ module Gummi
81
81
  0 => 'standard', # Some default transformations
82
82
  1 => 'lowercase', # Make everything lowercase
83
83
  2 => 'word_delimiter', # E.g. "O'Neil" -> "O Neil", "Victoria's" -> "Victoria"
84
- 2 => 'asciifolding', # Transform everything into ASCII
84
+ 3 => 'asciifolding', # Transform everything into ASCII
85
85
  },
86
86
  },
87
87
 
data/lib/gummi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gummi
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gummi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-30 00:00:00.000000000 Z
12
+ date: 2014-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus
@@ -269,12 +269,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
269
269
  - - ! '>='
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
+ segments:
273
+ - 0
274
+ hash: 3793066994442374579
272
275
  required_rubygems_version: !ruby/object:Gem::Requirement
273
276
  none: false
274
277
  requirements:
275
278
  - - ! '>='
276
279
  - !ruby/object:Gem::Version
277
280
  version: '0'
281
+ segments:
282
+ - 0
283
+ hash: 3793066994442374579
278
284
  requirements: []
279
285
  rubyforge_project:
280
286
  rubygems_version: 1.8.23