Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Shorten example request.

Co-authored-by: Leo Singer <[email protected]>
  • Loading branch information
ronitagarwala01 and lpsinger authored Dec 11, 2023
1 parent 7010a6b commit d8f7362
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,15 @@ import { search } from '@nasa-gcn/architect-functions-search'
export default async function () {
const client = await search()

//Set cluster settings
const cluster_settings_request = {
await client.transport.request({
method: 'PUT',
path: '/_cluster/settings',
body: {
persistent: {
cluster.max_shards_per_node: '500',
},
},
}

try {
await client.transport.request(cluster_settings_request)
} catch (e) {
console.log('Error: ', e)
return
})
}
}
```
Expand Down

0 comments on commit d8f7362

Please sign in to comment.