We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
options
1 parent 354b25a commit 0448d18Copy full SHA for 0448d18
elasticsearch-model/lib/elasticsearch/model/searching.rb
@@ -8,7 +8,7 @@ module Searching
8
# Wraps a search request definition
9
#
10
class SearchRequest
11
- attr_reader :klass, :definition
+ attr_reader :klass, :definition, :options
12
13
# @param klass [Class] The class of the model
14
# @param query_or_payload [String,Hash,Object] The search request definition
@@ -17,6 +17,7 @@ class SearchRequest
17
18
def initialize(klass, query_or_payload, options={})
19
@klass = klass
20
+ @options = options
21
22
__index_name = options[:index] || klass.index_name
23
__document_type = options[:type] || klass.document_type
0 commit comments