Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Abdon Pijpelink <[email protected]>
  • Loading branch information
szabosteve and abdonpijpelink authored Sep 7, 2023
1 parent 4540df5 commit 2fd8512
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions specification/_global/exists/DocumentExistsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface Request extends RequestBase {
*/
preference?: string
/**
* If true, the request is real-time as opposed to near-real-time.
* If `true`, the request is real-time as opposed to near-real-time.
* @server_default true
* @doc_id realtime
*/
Expand All @@ -69,7 +69,7 @@ export interface Request extends RequestBase {
*/
routing?: Routing
/**
* True or false to return the _source field or not, or a list of fields to return.
* `true` or `false` to return the `_source` field or not, or a list of fields to return.
*/
_source?: SourceConfigParam
/**
Expand Down
4 changes: 2 additions & 2 deletions specification/_global/exists_source/SourceExistsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
import { SourceConfigParam } from '@global/search/_types/SourceFilter'

/**
* Checks if a document is stored in the `source`.
* Checks if a document's `_source` is stored.
* @rest_spec_name exists_source
* @availability stack since=5.4.0 stability=stable
* @availability serverless stability=stable visibility=public
Expand Down Expand Up @@ -69,7 +69,7 @@ export interface Request extends RequestBase {
*/
routing?: Routing
/**
* True or false to return the _source field or not, or a list of fields to return.
* `true` or `false` to return the `_source` field or not, or a list of fields to return.
*/
_source?: SourceConfigParam
/**
Expand Down
2 changes: 1 addition & 1 deletion specification/_global/get/GetRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface Request extends RequestBase {
*/
preference?: string
/**
* If true, the request is real-time as opposed to near-real-time.
* If `true`, the request is real-time as opposed to near-real-time.
* @server_default true
* @doc_id realtime
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export interface Request extends RequestBase {
*/
search_type?: SearchType
/**
* If `true`, the response returns hits.total as an integer.
* If `false`, it returns hits.total as an object.
* If `true`, the response returns `hits.total` as an integer.
* If `false`, it returns `hits.total` as an object.
* @server_default false
*/
rest_total_hits_as_int?: boolean
Expand Down
3 changes: 0 additions & 3 deletions specification/_global/reindex_rethrottle/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ export class ReindexStatus {
* The number of retries attempted by reindex. `bulk` is the number of bulk actions retried and `search` is the number of search actions retried.
*/
retries: Retries
/**
*
*/
throttled?: Duration
/**
* Number of milliseconds the request slept to conform to `requests_per_second`.
Expand Down

0 comments on commit 2fd8512

Please sign in to comment.