Skip to content

Commit 57531ed

Browse files
add request heading line to request examples
1 parent 1302eb5 commit 57531ed

File tree

298 files changed

+298
-298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+298
-298
lines changed

specification/_global/bulk/examples/request/BulkRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Multiple operations
2-
# method_request: POST _bulk
2+
method_request: POST _bulk
33
description: Run `POST _bulk` to perform multiple operations.
44
# type: request
55
value: '{ "index" : { "_index" : "test", "_id" : "1" } }

specification/_global/bulk/examples/request/BulkRequestExample2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Bulk updates
2-
# method_request: POST _bulk
2+
method_request: POST _bulk
33
description: >
44
When you run `POST _bulk` and use the `update` action, you can use `retry_on_conflict` as a field in the action itself (not in the extra payload line) to specify how many times an update should be retried in the case of a version conflict.
55
# type: request

specification/_global/bulk/examples/request/BulkRequestExample3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Filter for failed operations
2-
# method_request: POST /_bulk
2+
method_request: POST /_bulk
33
description: >
44
To return only information about failed operations, run `POST /_bulk?filter_path=items.*.error`.
55
# type: request

specification/_global/bulk/examples/request/BulkRequestExample4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Dynamic templates
2-
# method_request: POST /_bulk
2+
method_request: POST /_bulk
33
description: >
44
Run `POST /_bulk` to perform a bulk request that consists of index and create actions with the `dynamic_templates` parameter.
55
The bulk request creates two new fields `work_location` and `home_location` with type `geo_point` according to the `dynamic_templates` parameter.

specification/_global/clear_scroll/examples/request/ClearScrollRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: DELETE /_search/scroll
2+
method_request: DELETE /_search/scroll
33
description: Run `DELETE /_search/scroll` to clear the search context and results for a scrolling search.
44
# type: request
55
value: |-

specification/_global/close_point_in_time/examples/request/ClosePointInTimeRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: DELETE /_pit
2+
method_request: DELETE /_pit
33
description: Run `DELETE /_pit` to close a point-in-time.
44
# type: request
55
value: |-

specification/_global/count/examples/request/CountRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: GET /my-index-000001/_count
2+
method_request: GET /my-index-000001/_count
33
description: >
44
Run `GET /my-index-000001/_count?q=user:kimchy`.
55
Alternatively, run `GET /my-index-000001/_count` with the same query in the request body.

specification/_global/create/examples/request/CreateRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: PUT my-index-000001/_create/1
2+
method_request: PUT my-index-000001/_create/1
33
description: >
44
Run `PUT my-index-000001/_create/1` to index a document into the `my-index-000001` index if no document with that ID exists.
55
# type: request

specification/_global/delete_by_query/examples/request/DeleteByQueryRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Delete all documents
2-
# method_request: POST /my-index-000001,my-index-000002/_delete_by_query
2+
method_request: POST /my-index-000001,my-index-000002/_delete_by_query
33
description: Run `POST /my-index-000001,my-index-000002/_delete_by_query` to delete all documents from multiple data streams or indices.
44
# type: request
55
value: |-

specification/_global/delete_by_query/examples/request/DeleteByQueryRequestExample2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Delete a single document
2-
# method_request: POST my-index-000001/_delete_by_query
2+
method_request: POST my-index-000001/_delete_by_query
33
description: Run `POST my-index-000001/_delete_by_query` to delete a document by using a unique attribute.
44
# type: request
55
value: |-

specification/_global/delete_by_query/examples/request/DeleteByQueryRequestExample3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Slice manually
2-
# method_request: POST my-index-000001/_delete_by_query
2+
method_request: POST my-index-000001/_delete_by_query
33
description: >
44
Run `POST my-index-000001/_delete_by_query` to slice a delete by query manually. Provide a slice ID and total number of slices.
55
# type: request

specification/_global/delete_by_query/examples/request/DeleteByQueryRequestExample4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Automatic slicing
2-
# method_request: POST my-index-000001/_delete_by_query?refresh&slices=5
2+
method_request: POST my-index-000001/_delete_by_query?refresh&slices=5
33
description: >
44
Run `POST my-index-000001/_delete_by_query?refresh&slices=5` to let delete by query automatically parallelize using sliced scroll to slice on `_id`.
55
The `slices` query parameter value specifies the number of slices to use.

specification/_global/explain/examples/request/ExplainRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: GET /my-index-000001/_explain/0
2+
method_request: GET /my-index-000001/_explain/0
33
description: >
44
Run `GET /my-index-000001/_explain/0` with the request body.
55
Alternatively, run `GET /my-index-000001/_explain/0?q=message:elasticsearch`

specification/_global/field_caps/examples/request/FieldCapabilitiesRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: "POST my-index-*/_field_caps?fields=rating"
2+
method_request: "POST my-index-*/_field_caps?fields=rating"
33
description: >
44
Run `POST my-index-*/_field_caps?fields=rating` to get field capabilities and filter indices with a query.
55
Indices that rewrite the provided filter to `match_none` on every shard will be filtered from the response.

specification/_global/index/examples/request/IndexRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Automate document IDs
2-
# method_request: POST my-index-000001/_doc/
2+
method_request: POST my-index-000001/_doc/
33
description: >
44
Run `POST my-index-000001/_doc/` to index a document.
55
When you use the `POST /<target>/_doc/` request format, the `op_type` is automatically set to `create` and the index operation generates a unique ID for the document.

specification/_global/index/examples/request/IndexRequestExample2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Define document IDs
2-
# method_request: PUT my-index-000001/_doc/1
2+
method_request: PUT my-index-000001/_doc/1
33
description: >
44
Run `PUT my-index-000001/_doc/1` to insert a JSON document into the `my-index-000001` index with an `_id` of 1.
55
# type: request

specification/_global/mget/examples/request/MultiGetRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Get documents by ID
2-
# method_request: "GET /my-index-000001/_mget"
2+
method_request: "GET /my-index-000001/_mget"
33
description: >
44
Run `GET /my-index-000001/_mget`.
55
When you specify an index in the request URI, only the document IDs are required in the request body.

specification/_global/mget/examples/request/MultiGetRequestExample2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Filter source fields
2-
# method_request: "GET /_mget"
2+
method_request: "GET /_mget"
33
description: >
44
Run `GET /_mget`.
55
This request sets `_source` to `false` for document 1 to exclude the source entirely.

specification/_global/mget/examples/request/MultiGetRequestExample3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Get stored fields
2-
# method_request: "GET /_mget"
2+
method_request: "GET /_mget"
33
description: >
44
Run `GET /_mget`.
55
This request retrieves `field1` and `field2` from document 1 and `field3` and `field4` from document 2.

specification/_global/mget/examples/request/MultiGetRequestExample4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Document routing
2-
# method_request: "GET /_mget?routing=key1"
2+
method_request: "GET /_mget?routing=key1"
33
description: >
44
Run `GET /_mget?routing=key1`.
55
If routing is used during indexing, you need to specify the routing value to retrieve documents.

specification/_global/msearch_template/examples/request/MultiSearchTemplateRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: GET my-index/_msearch/template
2+
method_request: GET my-index/_msearch/template
33
description: Run `GET my-index/_msearch/template` to run multiple templated searches.
44
# type: "request"
55
value: |-

specification/_global/mtermvectors/examples/request/MultiTermVectorsRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Get multiple term vectors
2-
# method_request: "POST /my-index-000001/_mtermvectors"
2+
method_request: "POST /my-index-000001/_mtermvectors"
33
description: >
44
Run `POST /my-index-000001/_mtermvectors`.
55
When you specify an index in the request URI, the index does not need to be specified for each documents in the request body.

specification/_global/mtermvectors/examples/request/MultiTermVectorsRequestExample2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Simplified syntax
2-
# method_request: POST /my-index-000001/_mtermvectors
2+
method_request: POST /my-index-000001/_mtermvectors
33
description: >
44
Run `POST /my-index-000001/_mtermvectors`.
55
If all requested documents are in same index and the parameters are the same, you can use a simplified syntax.

specification/_global/mtermvectors/examples/request/MultiTermVectorsRequestExample3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Artificial documents
2-
# method_request: POST /_mtermvectors
2+
method_request: POST /_mtermvectors
33
description: >
44
Run `POST /_mtermvectors` to generate term vectors for artificial documents provided in the body of the request.
55
The mapping used is determined by the specified `_index`.

specification/_global/put_script/examples/request/PutScriptRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Create a search template
2-
# method_request: PUT _scripts/my-search-template
2+
method_request: PUT _scripts/my-search-template
33
description: >
44
Run `PUT _scripts/my-search-template` to create a search template.
55
# type: request

specification/_global/put_script/examples/request/PutScriptRequestExample2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Create a stored script
2-
# method_request: PUT _scripts/my-stored-script
2+
method_request: PUT _scripts/my-stored-script
33
description: >
44
Run `PUT _scripts/my-stored-script` to create a stored script.
55
# type: request

specification/_global/reindex/examples/request/ReindexRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Reindex multiple sources
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
Run `POST _reindex` to reindex from multiple sources.
55
The `index` attribute in source can be a list, which enables you to copy from lots of sources in one request.

specification/_global/reindex/examples/request/ReindexRequestExample10.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Reindex with Painless
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
You can use Painless to reindex daily indices to apply a new template to the existing documents.
55
The script extracts the date from the index name and creates a new index with `-1` appended.

specification/_global/reindex/examples/request/ReindexRequestExample11.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Reindex a random subset
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
Run `POST _reindex` to extract a random subset of the source for testing.
55
You might need to adjust the `min_score` value depending on the relative amount of data extracted from source.

specification/_global/reindex/examples/request/ReindexRequestExample12.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Reindex modified documents
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
Run `POST _reindex` to modify documents during reindexing.
55
This example bumps the version of the source document.

specification/_global/reindex/examples/request/ReindexRequestExample13.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Reindex from remote on Elastic Cloud
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
When using Elastic Cloud, you can run `POST _reindex` and authenticate against a remote cluster with an API key.
55
# type: request

specification/_global/reindex/examples/request/ReindexRequestExample2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Manual slicing
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
Run `POST _reindex` to slice a reindex request manually.
55
Provide a slice ID and total number of slices to each request.

specification/_global/reindex/examples/request/ReindexRequestExample3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Automatic slicing
2-
# method_request: POST _reindex?slices=5&refresh
2+
method_request: POST _reindex?slices=5&refresh
33
description: >
44
Run `POST _reindex?slices=5&refresh` to automatically parallelize using sliced scroll to slice on `_id`.
55
The `slices` parameter specifies the number of slices to use.

specification/_global/reindex/examples/request/ReindexRequestExample4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Routing
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
By default if reindex sees a document with routing then the routing is preserved unless it's changed by the script.
55
You can set `routing` on the `dest` request to change this behavior.

specification/_global/reindex/examples/request/ReindexRequestExample5.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Ingest pipelines
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: Run `POST _reindex` and use the ingest pipelines feature.
44
# type: request
55
value:

specification/_global/reindex/examples/request/ReindexRequestExample6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Reindex with a query
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
Run `POST _reindex` and add a query to the `source` to limit the documents to reindex.
55
For example, this request copies documents into `my-new-index-000001` only if they have a `user.id` of `kimchy`.

specification/_global/reindex/examples/request/ReindexRequestExample7.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Reindex with max_docs
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
You can limit the number of processed documents by setting `max_docs`.
55
For example, run `POST _reindex` to copy a single document from `my-index-000001` to `my-new-index-000001`.

specification/_global/reindex/examples/request/ReindexRequestExample8.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Reindex selected fields
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
You can use source filtering to reindex a subset of the fields in the original documents.
55
For example, run `POST _reindex` the reindex only the `user.id` and `_doc` fields of each document.

specification/_global/reindex/examples/request/ReindexRequestExample9.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Reindex new field names
2-
# method_request: POST _reindex
2+
method_request: POST _reindex
33
description: >
44
A reindex operation can build a copy of an index with renamed fields.
55
If your index has documents with `text` and `flag` fields, you can change the latter field name to `tag` during the reindex.

specification/_global/render_search_template/examples/request/RenderSearchTemplateRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: POST _render/template
2+
method_request: POST _render/template
33
description: Run `POST _render/template`
44
# type: request
55
value: |-

specification/_global/scripts_painless_execute/examples/request/ExecutePainlessScriptRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Test context
2-
# method_request: POST /_scripts/painless/_execute
2+
method_request: POST /_scripts/painless/_execute
33
description: >
44
Run `POST /_scripts/painless/_execute`.
55
The `painless_test` context is the default context.

specification/_global/scripts_painless_execute/examples/request/ExecutePainlessScriptRequestExample2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Filter context
2-
# method_request: POST /_scripts/painless/_execute
2+
method_request: POST /_scripts/painless/_execute
33
description: >
44
Run `POST /_scripts/painless/_execute` with a `filter` context.
55
It treats scripts as if they were run inside a script query.

specification/_global/scripts_painless_execute/examples/request/ExecutePainlessScriptRequestExample3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Score context
2-
# method_request: POST /_scripts/painless/_execute
2+
method_request: POST /_scripts/painless/_execute
33
description: >
44
Run `POST /_scripts/painless/_execute` with a `score` context.
55
It treats scripts as if they were run inside a `script_score` function in a `function_score` query.

specification/_global/scroll/examples/request/ScrollRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# method_request: "GET /_search/scroll"
2+
method_request: "GET /_search/scroll"
33
description: Run `GET /_search/scroll` to get the next batch of results for a scrolling search.
44
# type: "request"
55
value: |-

specification/_global/search/examples/request/SearchRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: A simple term search
2-
# method_request: GET /my-index-000001/_search?from=40&size=20
2+
method_request: GET /my-index-000001/_search?from=40&size=20
33
description: >
44
Run `GET /my-index-000001/_search?from=40&size=20` to run a search.
55
# type: request

specification/_global/search/examples/request/SearchRequestExample2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: A point in time search
2-
# method_request: POST /_search
2+
method_request: POST /_search
33
description: >
44
Run `POST /_search` to run a point in time search.
55
The `id` parameter tells Elasticsearch to run the request using contexts from this open point in time.

specification/_global/search/examples/request/SearchRequestExample3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Search slicing
2-
# method_request: GET /_search
2+
method_request: GET /_search
33
description: >
44
When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently.
55
The result from running the first `GET /_search` request returns documents belonging to the first slice (`id: 0`).

specification/_global/search_mvt/examples/request/SearchMvtRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: "GET museums/_mvt/location/13/4207/2692"
2+
method_request: "GET museums/_mvt/location/13/4207/2692"
33
description: >
44
Run `GET museums/_mvt/location/13/4207/2692` to search an index for `location` values that intersect the `13/4207/2692` vector tile.
55
# type: "request"

specification/_global/search_template/examples/request/SearchTemplateRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: GET my-index/_search/template
2+
method_request: GET my-index/_search/template
33
description: >
44
Run `GET my-index/_search/template` to run a search with a search template.
55
# type: request

specification/_global/terms_enum/examples/request/TermsEnumRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# summary:
2-
# method_request: "POST stackoverflow/_terms_enum"
2+
method_request: "POST stackoverflow/_terms_enum"
33
description: Run `POST stackoverflow/_terms_enum`.
44
# type: "request"
55
value: |-

specification/_global/termvectors/examples/request/TermVectorsRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Return stored term vectors
2-
# method_request: GET /my-index-000001/_termvectors/1
2+
method_request: GET /my-index-000001/_termvectors/1
33
description: >
44
Run `GET /my-index-000001/_termvectors/1` to return all information and statistics for field `text` in document 1.
55
# type: request

specification/_global/termvectors/examples/request/TermVectorsRequestExample2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Per-field analyzer
2-
# method_request: GET /my-index-000001/_termvectors
2+
method_request: GET /my-index-000001/_termvectors
33
description: >
44
Run `GET /my-index-000001/_termvectors/1` to set per-field analyzers.
55
A different analyzer than the one at the field may be provided by using the `per_field_analyzer` parameter.

specification/_global/termvectors/examples/request/TermVectorsRequestExample3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Terms filtering
2-
# method_request: GET /imdb/_termvectorss
2+
method_request: GET /imdb/_termvectorss
33
description: >
44
Run `GET /imdb/_termvectors` to filter the terms returned based on their tf-idf scores.
55
It returns the three most "interesting" keywords from the artificial document having the given "plot" field value.

specification/_global/termvectors/examples/request/TermVectorsRequestExample4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Generate term vectors on the fly
2-
# method_request: GET /my-index-000001/_termvectors/1
2+
method_request: GET /my-index-000001/_termvectors/1
33
description: >
44
Run `GET /my-index-000001/_termvectors/1`.
55
Term vectors which are not explicitly stored in the index are automatically computed on the fly.

specification/_global/termvectors/examples/request/TermVectorsRequestExample5.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Artificial documents
2-
# method_request: GET /my-index-000001/_termvectors
2+
method_request: GET /my-index-000001/_termvectors
33
description: >
44
Run `GET /my-index-000001/_termvectors`.
55
Term vectors can be generated for artificial documents, that is for documents not present in the index. If dynamic mapping is turned on (default), the document fields not in the original mapping will be dynamically created.

specification/_global/update/examples/request/UpdateRequestExample1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Update a counter with a script
2-
# method_request: POST test/_update/1
2+
method_request: POST test/_update/1
33
description: Run `POST test/_update/1` to increment a counter by using a script.
44
# type: request
55
value:

specification/_global/update/examples/request/UpdateRequestExample10.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
summary: Scripted upsert
2-
# method_request: POST test/_update/1
2+
method_request: POST test/_update/1
33
description: >
44
Run `POST test/_update/1` to perform a scripted upsert.
55
When `scripted_upsert` is `true`, the script runs whether or not the document exists.

0 commit comments

Comments
 (0)