-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API to mount a snapshot as a searchable index (#53084)
This commit adds an API for mounting a snapshot as a searchable index. Internally, a request is made to the repository to fetch metadata information necessary from the snapshot in question, which is then passed to the regular snapshot restore mechanism with some specialized settings. Assume you have an existing snapshot repository and snapshot, the API looks like: POST /_snapshot/repository-name/snapshot-name/_mount?wait_for_completion=true { "index": "original-index-name", "renamed-index": "restored-index-name", "index_settings": { "index.number_of_replicas": 2 }, "ignore_index_settings": ["index.refresh_interval"] } While the request may appear similar to a snapshot restore request, it has slight differences. The `index` field is required and must name a single index (no wildcards or lists). The other fields are optional; if `renamed-index` is omitted then it defaults to the original index name. The response is identical to the response when restoring a snapshot. Relates to #50999 Co-authored-by: David Turner <david.turner@elastic.co>
- Loading branch information
1 parent
a4343a8
commit 88b01a2
Showing
17 changed files
with
719 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
175 changes: 0 additions & 175 deletions
175
...c/main/java/org/elasticsearch/xpack/searchablesnapshots/SearchableSnapshotRepository.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.