Skip to content

Commit

Permalink
Change postdeploy-search module to accept client passed from importin…
Browse files Browse the repository at this point in the history
…g module.
  • Loading branch information
ronitagarwala01 committed Dec 12, 2023
1 parent 9543cc2 commit a370381
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions postdeploy-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
This file contains API calls to the OpenSearch cluster to register and deploy an ml model to the opensearch cluster.
It also creates a neural ingest pipeline to allow for ingesting of documents into a knn index.
*/
import { search as getSearchClient } from 'architect-functions-search'

export default async function () {
const client = await getSearchClient()

export default async function (client) {
//Set cluster settings
const cluster_settings_request = {
method: 'PUT',
Expand Down

0 comments on commit a370381

Please sign in to comment.