Module: Legion::Extensions::ElasticAppSearch::Runners::Search

Includes:
Helpers::Client, Helpers::Lex
Defined in:
lib/legion/extensions/elastic_app_search/runners/search.rb

Instance Method Summary collapse

Methods included from Helpers::Client

#client

Instance Method Details

#multi_search(engine:, queries: [], **opts) ⇒ Object



12
13
14
# File 'lib/legion/extensions/elastic_app_search/runners/search.rb', line 12

def multi_search(engine:, queries: [], **opts)
  client(opts).multi_search(engine, queries)
end

#query_suggestion(engine:, query:, **opts) ⇒ Object



16
17
18
# File 'lib/legion/extensions/elastic_app_search/runners/search.rb', line 16

def query_suggestion(engine:, query:, **opts)
  client(opts).query_suggestion(engine, query, opts)
end

#reset_settings(engine:, **opts) ⇒ Object



28
29
30
# File 'lib/legion/extensions/elastic_app_search/runners/search.rb', line 28

def reset_settings(engine:, **opts)
  client(opts).reset_settings(engine)
end

#search(engine:, query:, **opts) ⇒ Object



8
9
10
# File 'lib/legion/extensions/elastic_app_search/runners/search.rb', line 8

def search(engine:, query:, **opts)
  client(opts).search(engine, query, opts)
end

#settings(engine:, **opts) ⇒ Object



20
21
22
# File 'lib/legion/extensions/elastic_app_search/runners/search.rb', line 20

def settings(engine:, **opts)
  client(opts).show_settings(engine)
end

#update_settings(engine:, settings:, **opts) ⇒ Object



24
25
26
# File 'lib/legion/extensions/elastic_app_search/runners/search.rb', line 24

def update_settings(engine:, settings:, **opts)
  client(opts).update_settings(engine, settings)
end