Skip to content

Commit

Permalink
adding query params to node metrics and index api specs (#174)
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh authored Jan 8, 2024
1 parent b42000c commit b6bf3fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions model/_global/search/structures.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ structure Search_QueryParams {
@httpQuery("rest_total_hits_as_int")
@default(false)
rest_total_hits_as_int: RestTotalHitsAsInt,

@httpQuery("search_pipeline")
search_pipeline: SearchPipeline
}

@documentation("The search definition using the Query DSL")
Expand Down
5 changes: 4 additions & 1 deletion model/common_strings.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ string PathNodeId
string PathNodesInfoMetric

@xDataType("array")
@xEnumOptions(["_all", "breaker", "fs", "http", "indices", "jvm", "os", "process", "thread_pool", "transport", "discovery", "indexing_pressure"])
@xEnumOptions(["_all", "breaker", "fs", "http", "indices", "jvm", "os", "process", "thread_pool", "transport", "discovery", "indexing_pressure", "search_pipeline"])
@pattern("^(?!_|template|query|field|point|clear|usage|stats|hot|reload|painless).+$")
@documentation("Limit the information returned to the specified metrics.")
string PathNodesStatsMetric
Expand Down Expand Up @@ -289,6 +289,9 @@ string ParentTaskId
@documentation("The pipeline id to preprocess incoming documents with.")
string Pipeline

@documentation("Customizable sequence of processing stages applied to search queries.")
string SearchPipeline

@documentation("Specify the node or shard the operation should be performed on.")
string Preference

Expand Down

0 comments on commit b6bf3fb

Please sign in to comment.