Skip to content

Commit

Permalink
Added search_pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <theotr@amazon.com>
  • Loading branch information
nhtruong committed Jan 31, 2024
1 parent 97fac2a commit 569548d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/opensearch/api/actions/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module Actions
# @option arguments [String] :q Query in the Lucene query string syntax
# @option arguments [List] :routing A comma-separated list of specific routing values
# @option arguments [Time] :scroll Specify how long a consistent view of the index should be maintained for scrolled search
# @option arguments [String] :search_pipeline Customizable sequence of processing stages applied to search queries.
# @option arguments [String] :search_type Search operation type (options: query_then_fetch, dfs_query_then_fetch)
# @option arguments [Number] :size Number of hits to return (default: 10)
# @option arguments [List] :sort A comma-separated list of <field>:<direction> pairs
Expand Down Expand Up @@ -128,6 +129,7 @@ def search(arguments = {})
q
routing
scroll
search_pipeline
search_type
size
sort
Expand Down
2 changes: 0 additions & 2 deletions lib/opensearch/transport/transport/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ def get_connection(options = {})
# @see Sniffer#hosts
#
def reload_connections!
puts hosts
hosts = sniffer.hosts
puts hosts
__rebuild_connections hosts: hosts, options: options
self
rescue SnifferTimeoutError
Expand Down

0 comments on commit 569548d

Please sign in to comment.