diff --git a/_im-plugin/index-transforms/index.md b/_im-plugin/index-transforms/index.md index cc48826c..7fd19571 100644 --- a/_im-plugin/index-transforms/index.md +++ b/_im-plugin/index-transforms/index.md @@ -104,7 +104,6 @@ GET finished_flight_job/_search "hits" : [ { "_index" : "finished_flight_job", - "_type" : "_doc", "_id" : "dSNKGb8U3OJOmC4RqVCi1Q", "_score" : 3.845883, "_source" : { @@ -116,7 +115,6 @@ GET finished_flight_job/_search }, { "_index" : "finished_flight_job", - "_type" : "_doc", "_id" : "_D7oqOy7drx9E-MG96U5RA", "_score" : 3.845883, "_source" : { @@ -128,7 +126,6 @@ GET finished_flight_job/_search }, { "_index" : "finished_flight_job", - "_type" : "_doc", "_id" : "YuZ8tOt1OsBA54e84WuAEw", "_score" : 3.6988301, "_source" : { @@ -140,7 +137,6 @@ GET finished_flight_job/_search }, { "_index" : "finished_flight_job", - "_type" : "_doc", "_id" : "W_-e7bVmH6eu8veJeK8ZxQ", "_score" : 3.6988301, "_source" : { diff --git a/_im-plugin/index-transforms/transforms-apis.md b/_im-plugin/index-transforms/transforms-apis.md index d68d6539..43cff3ba 100644 --- a/_im-plugin/index-transforms/transforms-apis.md +++ b/_im-plugin/index-transforms/transforms-apis.md @@ -731,7 +731,6 @@ DELETE _plugins/_transform/ { "delete": { "_index": ".opensearch-ism-config", - "_type": "_doc", "_id": "sample", "_version": 4, "result": "deleted", diff --git a/_im-plugin/ism/api.md b/_im-plugin/ism/api.md index fcf8c758..bdc6a565 100644 --- a/_im-plugin/ism/api.md +++ b/_im-plugin/ism/api.md @@ -533,7 +533,6 @@ DELETE _plugins/_ism/policies/policy_1 ```json { "_index": ".opendistro-ism-config", - "_type": "_doc", "_id": "policy_1", "_version": 3, "result": "deleted", diff --git a/_ml-commons-plugin/api.md b/_ml-commons-plugin/api.md index d55a121b..219c1505 100644 --- a/_ml-commons-plugin/api.md +++ b/_ml-commons-plugin/api.md @@ -173,7 +173,6 @@ POST /_plugins/_ml/models/_search "hits" : [ { "_index" : ".plugins-ml-model", - "_type" : "_doc", "_id" : "-QkKJX8BvytMh9aUeuLD", "_version" : 1, "_seq_no" : 12, @@ -188,7 +187,6 @@ POST /_plugins/_ml/models/_search }, { "_index" : ".plugins-ml-model", - "_type" : "_doc", "_id" : "OxkvHn8BNJ65KnIpck8x", "_version" : 1, "_seq_no" : 2, @@ -219,7 +217,6 @@ The API returns the following: ```json { "_index" : ".plugins-ml-model", - "_type" : "_doc", "_id" : "MzcIJX8BA7mbufL6DOwl", "_version" : 2, "result" : "deleted", @@ -602,7 +599,6 @@ GET /_plugins/_ml/tasks/_search "hits" : [ { "_index" : ".plugins-ml-task", - "_type" : "_doc", "_id" : "_wnLJ38BvytMh9aUi-Ia", "_version" : 4, "_seq_no" : 29, @@ -622,7 +618,6 @@ GET /_plugins/_ml/tasks/_search }, { "_index" : ".plugins-ml-task", - "_type" : "_doc", "_id" : "wwRRLX8BydmmU1x6I-AI", "_version" : 3, "_seq_no" : 38, @@ -658,7 +653,6 @@ The API returns the following: ```json { "_index" : ".plugins-ml-task", - "_type" : "_doc", "_id" : "xQRYLX8BydmmU1x6nuD3", "_version" : 4, "result" : "deleted", diff --git a/_monitoring-plugins/ad/api.md b/_monitoring-plugins/ad/api.md index 6ef20d1e..c8149424 100644 --- a/_monitoring-plugins/ad/api.md +++ b/_monitoring-plugins/ad/api.md @@ -1202,7 +1202,6 @@ DELETE _plugins/_anomaly_detection/detectors/ ```json { "_index": ".opensearch-anomaly-detectors", - "_type": "_doc", "_id": "70TxTXwBjd8s6RK4j1Pj", "_version": 2, "result": "deleted", @@ -1792,7 +1791,6 @@ POST _plugins/_anomaly_detection/detectors/_search "hits": [ { "_index": ".opensearch-anomaly-detectors", - "_type": "_doc", "_id": "Zi5zTXwBwf_U8gjUTfJG", "_version": 1, "_seq_no": 1, @@ -1924,7 +1922,6 @@ POST _plugins/_anomaly_detection/detectors/tasks/_search "hits": [ { "_index": ".opensearch-anomaly-detection-state", - "_type": "_doc", "_id": "fm-RTXwBYwCbWecgB753", "_version": 34, "_seq_no": 928, @@ -2263,7 +2260,6 @@ For information about the response body fields, see [Anomaly result mapping]({{s "hits": [ { "_index": ".opensearch-anomaly-results-history-2021.10.04-1", - "_type": "_doc", "_id": "686KTXwB6HknB84SMr6G", "_version": 1, "_seq_no": 103622, @@ -2389,7 +2385,6 @@ POST _plugins/_anomaly_detection/detectors/results/_search "hits": [ { "_index": ".opensearch-anomaly-results-history-2021.10.04-1", - "_type": "_doc", "_id": "VRyRTXwBDx7vzPBV8jYC", "_version": 1, "_seq_no": 149657, diff --git a/_monitoring-plugins/alerting/api.md b/_monitoring-plugins/alerting/api.md index a087bff8..5ea1319c 100644 --- a/_monitoring-plugins/alerting/api.md +++ b/_monitoring-plugins/alerting/api.md @@ -967,7 +967,6 @@ DELETE _plugins/_alerting/monitors/ ```json { "_index": ".opensearch-scheduled-jobs", - "_type": "_doc", "_id": "OYAHOmgBl3cmwnqZl_yH", "_version": 2, "result": "deleted", diff --git a/_opensearch/query-dsl/bool.md b/_opensearch/query-dsl/bool.md index b834ad6c..ae58f3af 100644 --- a/_opensearch/query-dsl/bool.md +++ b/_opensearch/query-dsl/bool.md @@ -113,7 +113,6 @@ GET shakespeare/_search "hits": [ { "_index": "shakespeare", - "_type": "_doc", "_id": "88020", "_score": 11.356054, "_source": { diff --git a/_opensearch/query-dsl/function-score.md b/_opensearch/query-dsl/function-score.md new file mode 100644 index 00000000..e69de29b diff --git a/_opensearch/query-dsl/index.md b/_opensearch/query-dsl/index.md index ac55e7ea..f3167f52 100644 --- a/_opensearch/query-dsl/index.md +++ b/_opensearch/query-dsl/index.md @@ -41,7 +41,6 @@ GET _search?q=speaker:queen "hits": [ { "_index": "new_shakespeare", - "_type": "_doc", "_id": "28559", "_score": 4.4368687, "_source": { @@ -90,7 +89,6 @@ With query DSL, however, you can include an HTTP request body to look for result "hits": [ { "_index": "new_shakespeare", - "_type": "_doc", "_id": "100763", "_score": 7.8623476, "_source": { @@ -105,7 +103,6 @@ With query DSL, however, you can include an HTTP request body to look for result }, { "_index": "shakespeare", - "_type": "_doc", "_id": "28559", "_score": 5.8923807, "_source": { diff --git a/_opensearch/query-dsl/term.md b/_opensearch/query-dsl/term.md index dccbb762..d4a836d4 100644 --- a/_opensearch/query-dsl/term.md +++ b/_opensearch/query-dsl/term.md @@ -95,7 +95,6 @@ The search query “To be, or not to be” is analyzed and tokenized into an arr "hits" : [ { "_index" : "shakespeare", - "_type" : "_doc", "_id" : "34229", "_score" : 17.419369, "_source" : { @@ -110,7 +109,6 @@ The search query “To be, or not to be” is analyzed and tokenized into an arr }, { "_index" : "shakespeare", - "_type" : "_doc", "_id" : "109930", "_score" : 14.883024, "_source" : { @@ -125,7 +123,6 @@ The search query “To be, or not to be” is analyzed and tokenized into an arr }, { "_index" : "shakespeare", - "_type" : "_doc", "_id" : "103117", "_score" : 14.782743, "_source" : { @@ -180,7 +177,6 @@ GET shakespeare/_search "hits" : [ { "_index" : "shakespeare", - "_type" : "_doc", "_id" : "32700", "_score" : 4.2540946, "_source" : { @@ -195,7 +191,6 @@ GET shakespeare/_search }, { "_index" : "shakespeare", - "_type" : "_doc", "_id" : "32702", "_score" : 4.2540946, "_source" : { @@ -210,7 +205,6 @@ GET shakespeare/_search }, { "_index" : "shakespeare", - "_type" : "_doc", "_id" : "32709", "_score" : 4.2540946, "_source" : { diff --git a/_opensearch/rest-api/document-apis/bulk.md b/_opensearch/rest-api/document-apis/bulk.md index c10a3932..ea84e106 100644 --- a/_opensearch/rest-api/document-apis/bulk.md +++ b/_opensearch/rest-api/document-apis/bulk.md @@ -123,7 +123,6 @@ In the response, pay particular attention to the top-level `errors` boolean. If { "index": { "_index": "movies", - "_type": "_doc", "_id": "tt1979320", "_version": 1, "result": "created", @@ -140,7 +139,6 @@ In the response, pay particular attention to the top-level `errors` boolean. If { "create": { "_index": "movies", - "_type": "_doc", "_id": "tt1392214", "status": 409, "error": { @@ -155,7 +153,6 @@ In the response, pay particular attention to the top-level `errors` boolean. If { "update": { "_index": "movies", - "_type": "_doc", "_id": "tt0816711", "status": 404, "error": { diff --git a/_opensearch/rest-api/document-apis/delete-document.md b/_opensearch/rest-api/document-apis/delete-document.md index a1dd9254..7dce7c88 100644 --- a/_opensearch/rest-api/document-apis/delete-document.md +++ b/_opensearch/rest-api/document-apis/delete-document.md @@ -44,7 +44,6 @@ wait_for_active_shards | String | The number of active shards that must be avail ```json { "_index": "sample-index1", - "_type": "_doc", "_id": "1", "_version": 2, "result": "deleted", @@ -63,7 +62,6 @@ wait_for_active_shards | String | The number of active shards that must be avail Field | Description :--- | :--- _index | The name of the index. -_type | The document's type. OpenSearch only supports one type, which is `_doc`. _id | The document's ID. _version | The document's version. _result | The result of the delete operation. diff --git a/_opensearch/rest-api/document-apis/get-documents.md b/_opensearch/rest-api/document-apis/get-documents.md index d5aad0d1..81c82cef 100644 --- a/_opensearch/rest-api/document-apis/get-documents.md +++ b/_opensearch/rest-api/document-apis/get-documents.md @@ -51,7 +51,6 @@ version_type | Enum | Retrieves a specifically typed document. Available options ```json { "_index": "sample-index1", - "_type": "_doc", "_id": "1", "_version": 1, "_seq_no": 0, @@ -68,7 +67,6 @@ version_type | Enum | Retrieves a specifically typed document. Available options Field | Description :--- | :--- _index | The name of the index. -_type | The document's type. OpenSearch only supports one type, which is `_doc`. _id | The document's ID. _version | The document's version number. Updated whenever the document changes. _seq_no | The sequnce number assigned when the document is indexed. diff --git a/_opensearch/rest-api/document-apis/index-document.md b/_opensearch/rest-api/document-apis/index-document.md index d83ba319..c7337fdb 100644 --- a/_opensearch/rest-api/document-apis/index-document.md +++ b/_opensearch/rest-api/document-apis/index-document.md @@ -64,7 +64,6 @@ Your request body must contain the information you want to index. ```json { "_index": "sample-index", - "_type": "_doc", "_id": "1", "_version": 1, "result": "created", @@ -83,7 +82,6 @@ Your request body must contain the information you want to index. Field | Description :--- | :--- _index | The name of the index. -_type | The document's type. OpenSearch supports only one type, which is `_doc`. _id | The document's ID. _version | The document's version. result | The result of the index operation. diff --git a/_opensearch/rest-api/document-apis/multi-get.md b/_opensearch/rest-api/document-apis/multi-get.md index d3d647af..9b5d0ecd 100644 --- a/_opensearch/rest-api/document-apis/multi-get.md +++ b/_opensearch/rest-api/document-apis/multi-get.md @@ -41,12 +41,10 @@ GET sample-index1/_mget { "docs": [ { - "_type": "_doc", "_id": "1", "_source": false }, { - "_type": "_doc", "_id": "2", "_source": [ "Director", "Title" ] } @@ -98,7 +96,6 @@ ids | Array | IDs of the documents to retrieve. Only allowed when an index is sp "docs": [ { "_index": "sample-index1", - "_type": "_doc", "_id": "1", "_version": 4, "_seq_no": 5, @@ -111,7 +108,6 @@ ids | Array | IDs of the documents to retrieve. Only allowed when an index is sp }, { "_index": "sample-index2", - "_type": "_doc", "_id": "1", "_version": 1, "_seq_no": 6, @@ -131,7 +127,6 @@ ids | Array | IDs of the documents to retrieve. Only allowed when an index is sp Field | Description :--- | :--- _index | The name of the index. -_type | The document's type. OpenSearch only supports one type, which is `_doc`. _id | The document's ID. _version | The document's version number. Updated whenever the document changes. _seq_no | The sequnce number assigned when the document is indexed. diff --git a/_opensearch/rest-api/document-apis/update-document.md b/_opensearch/rest-api/document-apis/update-document.md index 4b313550..10c1e1b3 100644 --- a/_opensearch/rest-api/document-apis/update-document.md +++ b/_opensearch/rest-api/document-apis/update-document.md @@ -91,7 +91,6 @@ You can also use a script to tell OpenSearch how to update your document. ```json { "_index": "sample-index1", - "_type": "_doc", "_id": "1", "_version": 3, "result": "updated", @@ -110,7 +109,6 @@ You can also use a script to tell OpenSearch how to update your document. Field | Description :--- | :--- _index | The name of the index. -_type | The document's type. OpenSearch only supports one type, which is `_doc`. _id | The document's ID. _version | The document's version. _result | The result of the delete operation. diff --git a/_opensearch/rest-api/explain.md b/_opensearch/rest-api/explain.md index ac53ba2f..0b333dfa 100644 --- a/_opensearch/rest-api/explain.md +++ b/_opensearch/rest-api/explain.md @@ -78,7 +78,6 @@ Parameter | Type | Description | Required ```json { "_index" : "kibana_sample_data_ecommerce", - "_type" : "_doc", "_id" : "EVz1Q3sBgg5eWQP6RSte", "matched" : true, "explanation" : { diff --git a/_opensearch/rest-api/index-apis/create-index.md b/_opensearch/rest-api/index-apis/create-index.md index 12e9422f..bd6cca45 100644 --- a/_opensearch/rest-api/index-apis/create-index.md +++ b/_opensearch/rest-api/index-apis/create-index.md @@ -61,7 +61,6 @@ You can include the following URL parameters in your request. All parameters are Parameter | Type | Description :--- | :--- | :--- -include_type_name | Boolean | If `true`, the request expects a type in the body of mappings. Because OpenSearch indices all have a type of `_doc`, we recommend that this parameter is left as the default of `false.` wait_for_active_shards | String | Specifies the number of active shards that must be available before OpenSearch processes the request. Default is 1 (only the primary shard). Set to `all` or a positive integer. Values greater than 1 require replicas. For example, if you specify a value of 3, the index must have two replicas distributed across two additional nodes for the request to succeed. master_timeout | Time | How long to wait for a connection to the master node. Default is `30s`. timeout | Time | How long to wait for the request to return. Default is `30s`. diff --git a/_opensearch/rest-api/ingest-apis/simulate-ingest.md b/_opensearch/rest-api/ingest-apis/simulate-ingest.md index 9cfec043..8dc77cdf 100644 --- a/_opensearch/rest-api/ingest-apis/simulate-ingest.md +++ b/_opensearch/rest-api/ingest-apis/simulate-ingest.md @@ -85,7 +85,6 @@ Responses vary based on which path and HTTP method you choose. { "doc" : { "_index" : "index", - "_type" : "_doc", "_id" : "id", "_source" : { "location" : "new-new", @@ -99,7 +98,6 @@ Responses vary based on which path and HTTP method you choose. { "doc" : { "_index" : "index", - "_type" : "_doc", "_id" : "id", "_source" : { "location" : "new-new", @@ -122,7 +120,6 @@ Responses vary based on which path and HTTP method you choose. { "doc" : { "_index" : "index", - "_type" : "_doc", "_id" : "id", "_source" : { "field-name" : "value", @@ -136,7 +133,6 @@ Responses vary based on which path and HTTP method you choose. { "doc" : { "_index" : "index", - "_type" : "_doc", "_id" : "id", "_source" : { "field-name" : "value", @@ -165,7 +161,6 @@ With the `verbose` parameter set to `true`, the response shows how each processo "status" : "success", "doc" : { "_index" : "index", - "_type" : "_doc", "_id" : "id", "_source" : { "field-name" : "value", @@ -186,7 +181,6 @@ With the `verbose` parameter set to `true`, the response shows how each processo "status" : "success", "doc" : { "_index" : "index", - "_type" : "_doc", "_id" : "id", "_source" : { "field-name" : "value", diff --git a/_opensearch/rest-api/multi-search.md b/_opensearch/rest-api/multi-search.md index ecdfb26d..ab049835 100644 --- a/_opensearch/rest-api/multi-search.md +++ b/_opensearch/rest-api/multi-search.md @@ -112,7 +112,6 @@ OpenSearch returns an array with the results of each search in the same order as "hits" : [ { "_index" : "opensearch_dashboards_sample_data_logs", - "_type" : "_doc", "_id" : "_fnhBXsBgv2Zxgu9dZ8Y", "_score" : 1.0, "_source" : { @@ -177,7 +176,6 @@ OpenSearch returns an array with the results of each search in the same order as "hits" : [ { "_index" : "opensearch_dashboards_sample_data_ecommerce", - "_type" : "_doc", "_id" : "efnhBXsBgv2Zxgu9ap7e", "_score" : 1.0, "_source" : { diff --git a/_opensearch/rest-api/search.md b/_opensearch/rest-api/search.md index 23834eea..f83fa7f6 100644 --- a/_opensearch/rest-api/search.md +++ b/_opensearch/rest-api/search.md @@ -125,7 +125,6 @@ version | Boolean | Whether to include the document version in the response. "hits": [ { "_index": "superheroes", - "_type": "_doc", "_id": "1", "_score": 1.0, "_source": { diff --git a/_opensearch/ux.md b/_opensearch/ux.md index 8c6b378e..44ea1ef6 100644 --- a/_opensearch/ux.md +++ b/_opensearch/ux.md @@ -210,7 +210,6 @@ GET shakespeare/_search "hits": [ { "_index": "shakespeare", - "_type": "_doc", "_id": "22006", "_score": 9.712725, "_source": { @@ -225,7 +224,6 @@ GET shakespeare/_search }, { "_index": "shakespeare", - "_type": "_doc", "_id": "54665", "_score": 9.712725, "_source": { @@ -327,8 +325,7 @@ The phrase "to be" is prefix matched with the FST of the `text_entry` field. "options": [ { "text": "To be a comrade with the wolf and owl,--", - "_index": "shakespeare", - "_type": "_doc", + "_index": "shakespeare", "_id": "50652", "_score": 1, "_source": { @@ -344,7 +341,6 @@ The phrase "to be" is prefix matched with the FST of the `text_entry` field. { "text": "To be a make-peace shall become my age:", "_index": "shakespeare", - "_type": "_doc", "_id": "78566", "_score": 1, "_source": { @@ -411,7 +407,6 @@ GET shakespeare/_search { "text": "To make a bastard and a slave of me!", "_index": "shakespeare", - "_type": "_doc", "_id": "5369", "_score": 4, "_source": { @@ -427,7 +422,6 @@ GET shakespeare/_search { "text": "To make a bloody supper in the Tower.", "_index": "shakespeare", - "_type": "_doc", "_id": "12504", "_score": 4, "_source": { @@ -513,7 +507,6 @@ You see the indexed document as the first result: { "text": "To be, or not to be: that is the question:", "_index": "shakespeare", - "_type": "_doc", "_id": "1", "_score": 30, "_source": { @@ -529,7 +522,6 @@ You see the indexed document as the first result: { "text": "To make a bastard and a slave of me!", "_index": "shakespeare", - "_type": "_doc", "_id": "5369", "_score": 4, "_source": { diff --git a/_replication-plugin/get-started.md b/_replication-plugin/get-started.md index 9e5596de..aef39550 100644 --- a/_replication-plugin/get-started.md +++ b/_replication-plugin/get-started.md @@ -226,7 +226,6 @@ curl -XGET -k -u 'admin:admin' 'https://localhost:9200/follower-01/_search?prett ... "hits": [{ "_index": "follower-01", - "_type": "_doc", "_id": "1", "_score": 1.0, "_source": { diff --git a/_search-plugins/async/index.md b/_search-plugins/async/index.md index 2a3f51cf..cf4f4f12 100644 --- a/_search-plugins/async/index.md +++ b/_search-plugins/async/index.md @@ -148,7 +148,6 @@ GET _plugins/_asynchronous_search/?pretty "hits": [ { "_index": "bank", - "_type": "_doc", "_id": "1", "_score": 1, "_source": { diff --git a/_search-plugins/knn/api.md b/_search-plugins/knn/api.md index f5cf6c4f..ff667c48 100644 --- a/_search-plugins/knn/api.md +++ b/_search-plugins/knn/api.md @@ -256,7 +256,6 @@ GET/POST /_plugins/_knn/models/_search?pretty&_source_excludes=model_blob "hits" : [ { "_index" : ".opensearch-knn-models", - "_type" : "_doc", "_id" : "test-model", "_score" : 1.0, "_source" : { diff --git a/_security-plugin/access-control/cross-cluster-search.md b/_security-plugin/access-control/cross-cluster-search.md index 3c37f3c6..88c84921 100644 --- a/_security-plugin/access-control/cross-cluster-search.md +++ b/_security-plugin/access-control/cross-cluster-search.md @@ -176,7 +176,6 @@ curl -XGET -k -u 'admin:admin' 'https://localhost:9250/opensearch-ccs-cluster1:b ... "hits": [{ "_index": "opensearch-ccs-cluster1:books", - "_type": "_doc", "_id": "1", "_score": 1.0, "_source": { @@ -230,7 +229,6 @@ curl -XGET -k -u booksuser:password 'https://localhost:9250/opensearch-ccs-clust ... "hits": [{ "_index": "opensearch-ccs-cluster1:books", - "_type": "_doc", "_id": "1", "_score": 1.0, "_source": { diff --git a/_security-plugin/access-control/field-level-security.md b/_security-plugin/access-control/field-level-security.md index e306c951..f0ad6379 100644 --- a/_security-plugin/access-control/field-level-security.md +++ b/_security-plugin/access-control/field-level-security.md @@ -27,7 +27,6 @@ You have two options when you configure field-level security: include or exclude ```json { "_index": "movies", - "_type": "_doc", "_source": { "year": 2013, "title": "Rush", @@ -45,7 +44,6 @@ If you exclude fields, users see everything *but* those fields when they retriev ```json { "_index": "movies", - "_type": "_doc", "_source": { "directors": [ "Ron Howard" @@ -107,7 +105,6 @@ For example, in the `movies` index, if you include `actors`, `title`, and `year` ```json { "_index": "movies", - "_type": "_doc", "_source": { "year": 2013, "directors": [ diff --git a/_security-plugin/access-control/field-masking.md b/_security-plugin/access-control/field-masking.md index e00233dd..9cff0d57 100644 --- a/_security-plugin/access-control/field-masking.md +++ b/_security-plugin/access-control/field-masking.md @@ -14,7 +14,6 @@ Field masking works alongside field-level security on the same per-role, per-ind ```json { "_index": "movies", - "_type": "_doc", "_source": { "year": 2013, "directors": [