Module: DVLA::Kaping::Search
- Included in:
- DVLA::Kaping
- Defined in:
- lib/dvla/kaping/search.rb
Instance Method Summary collapse
-
#search(body) ⇒ Object
could pass in a home rolled client.
Instance Method Details
#search(body) ⇒ Object
could pass in a home rolled client
5 6 7 8 9 10 11 12 13 |
# File 'lib/dvla/kaping/search.rb', line 5 def search(body) client = DVLA::Kaping::AWSClient.new con = client.connect con.search( index: Kaping.yaml[:kaping_index], body: body, size: Kaping.yaml[:kaping_result_size], ) end |