elastic_record 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,7 +35,7 @@ module ElasticRecord
35
35
  end
36
36
 
37
37
  def to_hits
38
- @hits ||= klass.elastic_connection.search(as_elastic)#, ids_only: true)
38
+ @hits ||= klass.elastic_connection.search(as_elastic, limit: limit_value)#, ids_only: true)
39
39
  end
40
40
 
41
41
  def ==(other)
@@ -162,6 +162,19 @@ module ElasticRecord
162
162
  end
163
163
  end
164
164
 
165
+ # def normalize_value(value)
166
+ # case value
167
+ # when true
168
+ # "T"
169
+ # when false
170
+ # "F"
171
+ # when Time
172
+ # value.iso8601
173
+ # else
174
+ # value
175
+ # end
176
+ # end
177
+
165
178
  def build_limit(limit)
166
179
  if limit
167
180
  Arelastic::Searches::Size.new(limit)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2012-07-24 00:00:00.000000000 Z
12
+ date: 2012-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: arelastic