Class: Elasticity::ScrollableSearch
- Inherits:
-
Object
- Object
- Elasticity::ScrollableSearch
- Defined in:
- lib/elasticity/scrollable_search.rb
Class Method Summary collapse
Class Method Details
.elasticsearch_gem_version ⇒ Object
11 12 13 |
# File 'lib/elasticity/scrollable_search.rb', line 11 def self.elasticsearch_gem_version Gem.loaded_specs["elasticsearch"].version end |
.search_type ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/elasticity/scrollable_search.rb', line 3 def self.search_type if elasticsearch_gem_version < Gem::Version.create("2.0") :scan else :query_then_fetch end end |