Skip to content

Commit 5e11b73

Browse files
committed
[OpenAPI] More search summary edits
1 parent 90108dc commit 5e11b73

File tree

9 files changed

+31
-5
lines changed

9 files changed

+31
-5
lines changed

specification/_global/knn_search/KnnSearchRequest.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions'
2424
import { Query } from './_types/Knn'
2525

2626
/**
27+
* Run a knn search.
28+
*
29+
* NOTE: The kNN search API has been replaced by the `knn` option in the search API.
30+
*
31+
* Perform a k-nearest neighbor (kNN) search on a dense_vector field and return the matching documents.
32+
* Given a query vector, the API finds the k closest vectors and returns those documents as search hits.
33+
*
34+
* Elasticsearch uses the HNSW algorithm to support efficient kNN search.
35+
* Like most kNN algorithms, HNSW is an approximate method that sacrifices result accuracy for improved search speed.
36+
* This means the results returned are not always the true k closest neighbors.
37+
*
38+
* The kNN search API supports restricting the search using a filter.
39+
* The search will return the top k documents that also match the filter query.
2740
* @rest_spec_name knn_search
2841
* @availability stack since=8.0.0 stability=experimental
2942
* @deprecated 8.4.0

specification/_global/search/SearchRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ import { SourceConfig, SourceConfigParam } from './_types/SourceFilter'
5252
import { Suggester } from './_types/suggester'
5353

5454
/**
55-
* Returns search hits that match the query defined in the request.
55+
* Run a search.
56+
*
57+
* Get search hits that match the query defined in the request.
5658
* You can provide search queries using the `q` query string parameter or the request body.
5759
* If both are specified, only the query parameter is used.
5860
* @rest_spec_name search

specification/_global/search_mvt/SearchMvtRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ import { ZoomLevel } from './_types/ZoomLevel'
3232

3333
/**
3434
* Search a vector tile.
35-
* Searches a vector tile for geospatial values.
35+
*
36+
* Search a vector tile for geospatial values.
3637
* @rest_spec_name search_mvt
3738
* @availability stack since=7.15.0 stability=stable
3839
* @availability serverless stability=stable visibility=public

specification/_global/search_shards/SearchShardsRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ import { RequestBase } from '@_types/Base'
2121
import { ExpandWildcards, Indices, Routing } from '@_types/common'
2222

2323
/**
24+
* Get the search shards.
25+
*
26+
* Get the indices and shards that a search request would be run against.
27+
* This information can be useful for working out issues or planning optimizations with routing and shard preferences.
28+
* When filtered aliases are used, the filter is returned as part of the indices section.
2429
* @rest_spec_name search_shards
2530
* @availability stack stability=stable
2631
* @doc_tag search

specification/_global/termvectors/TermVectorsRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ import { Filter } from './types'
3232

3333
/**
3434
* Get term vector information.
35-
* Returns information and statistics about terms in the fields of a particular document.
35+
*
36+
* Get information and statistics about terms in the fields of a particular document.
3637
* @rest_spec_name termvectors
3738
* @availability stack stability=stable
3839
* @availability serverless stability=stable visibility=public

specification/async_search/delete/AsyncSearchDeleteRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { Id } from '@_types/common'
2222

2323
/**
2424
* Delete an async search.
25+
*
2526
* If the asynchronous search is still running, it is cancelled.
2627
* Otherwise, the saved search results are deleted.
2728
* If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the `cancel_task` cluster privilege.

specification/async_search/get/AsyncSearchGetRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { Duration } from '@_types/Time'
2323

2424
/**
2525
* Get async search results.
26+
*
2627
* Retrieve the results of a previously submitted asynchronous search request.
2728
* If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
2829
* @rest_spec_name async_search.get

specification/async_search/status/AsyncSearchStatusRequest.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { Id } from '@_types/common'
2222

2323
/**
24-
* Get async search status.
25-
* Retrieve the status of a previously submitted async search request given its identifier, without retrieving search results.
24+
* Get the async search status.
25+
*
26+
* Get the status of a previously submitted async search request given its identifier, without retrieving search results.
2627
* If the Elasticsearch security features are enabled, use of this API is restricted to the `monitoring_user` role.
2728
* @rest_spec_name async_search.status
2829
* @availability stack since=7.11.0 stability=stable

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import { Duration } from '@_types/Time'
5454

5555
/**
5656
* Run an async search.
57+
*
5758
* When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.
5859
*
5960
* Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.

0 commit comments

Comments
 (0)