Skip to content

Commit c00d01a

Browse files
authored
[DOCS] Adds description to the Search Application APIs. (#2266)
1 parent bdbf779 commit c00d01a

File tree

7 files changed

+47
-35
lines changed

7 files changed

+47
-35
lines changed

output/schema/schema.json

+23-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/search_application/_types/BehavioralAnalytics.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { IndexName, Name } from '@_types/common'
2121

2222
export class AnalyticsCollection {
2323
/**
24-
* Data stream for the collection
24+
* Data stream for the collection.
2525
*/
2626
event_data_stream: EventDataStream
2727
}

specification/search_application/_types/SearchApplication.ts

+8-5
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,30 @@ import { InlineScript } from '@_types/Scripting'
2323

2424
export class SearchApplication {
2525
/**
26-
* Search Application name
26+
* Search Application name.
2727
*/
2828
name: Name
2929
/**
30-
* Indices that are part of the Search Application
30+
* Indices that are part of the Search Application.
3131
*/
3232
indices: IndexName[]
3333
/**
34-
* Last time the Search Application was updated
34+
* Last time the Search Application was updated.
3535
*/
3636
updated_at_millis: EpochTime<UnitMillis>
3737
/**
38-
* Analytics collection associated to the Search Application
38+
* Analytics collection associated to the Search Application.
3939
*/
4040
analytics_collection_name?: Name
4141
/**
42-
* Search template to use on search operations
42+
* Search template to use on search operations.
4343
*/
4444
template?: SearchApplicationTemplate
4545
}
4646

4747
export class SearchApplicationTemplate {
48+
/**
49+
* The associated mustache template.
50+
*/
4851
script: InlineScript
4952
}

specification/search_application/list/SearchApplicationsListRequest.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ import { integer } from '@_types/Numeric'
2828
export interface Request extends RequestBase {
2929
query_parameters: {
3030
/**
31-
* Query in the Lucene query string syntax"
31+
* Query in the Lucene query string syntax.
3232
*/
3333
q?: string
3434
/**
35-
* Starting offset (default: 0)
35+
* Starting offset.
36+
* @server_default 0
3637
*/
3738
from?: integer
3839
/**
39-
* specifies a max number of results to get
40+
* Specifies a max number of results to get.
4041
*/
4142
size?: integer
4243
}

specification/search_application/put/SearchApplicationsPutRequest.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,19 @@ import { SearchApplication } from '../_types/SearchApplication'
2929
export interface Request extends RequestBase {
3030
path_parts: {
3131
/**
32-
* The name of the search application to be created or updated
32+
* The name of the search application to be created or updated.
3333
*/
3434
name: Name
3535
}
3636
query_parameters: {
3737
/**
38-
* If true, requires that a search application with the specified resource_id does not already exist. (default: false)
38+
* If `true`, this request cannot replace or update existing Search Applications.
39+
* @server_default false
3940
*/
4041
create?: boolean
4142
}
4243
/**
43-
* The search application information to update
44+
* Contains parameters for a search application.
4445
*/
4546
/** @codegen_name search_application */
4647
body: SearchApplication

specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ import { RequestBase } from '@_types/Base'
2020
import { Name } from '@_types/common'
2121

2222
/**
23-
* Creates a behavioral analytics collection
23+
* Creates a behavioral analytics collection.
2424
* @rest_spec_name search_application.put_behavioral_analytics
2525
* @availability stack since=8.8.0 stability=experimental
2626
* @availability serverless stability=experimental visibility=public
2727
*/
2828
export interface Request extends RequestBase {
2929
path_parts: {
3030
/**
31-
* The name of the analytics collection to be created or updated
31+
* The name of the analytics collection to be created or updated.
3232
*/
3333
name: Name
3434
}

specification/search_application/search/SearchApplicationsSearchRequest.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,22 @@ import { Dictionary } from '@spec_utils/Dictionary'
2222
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2323

2424
/**
25-
* Perform a search against a search application
25+
* Perform a search against a search application.
2626
* @rest_spec_name search_application.search
2727
* @availability stack since=8.8.0 stability=beta
2828
* @availability serverless stability=beta visibility=public
2929
*/
3030
export interface Request extends RequestBase {
3131
path_parts: {
3232
/**
33-
* The name of the search application to be searched
33+
* The name of the search application to be searched.
3434
*/
3535
name: Name
3636
}
3737
body: {
38+
/**
39+
* Query parameters specific to this request, which will override any defaults specified in the template.
40+
*/
3841
params?: Dictionary<string, UserDefinedValue>
3942
}
4043
}

0 commit comments

Comments
 (0)