Skip to content

Commit

Permalink
Fix indexName argument type in openIndex/closeIndex methods
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelborn committed May 7, 2024
1 parent 3ab449c commit 260d63e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions models/io/HyperClient.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -532,13 +532,13 @@ component accessors="true" threadSafe singleton {

/**
* Open the given index/indices.
*
*
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html
*
* @indexName string|array Index name or alias. Can accept an array of index/alias names, as well as wildcard expressions or `_all`.
* @params struct Struct of query parameters to influence the request. For example: `{ "expand_wildcards" : "none" }
*/
function openIndex( required string indexName, any params ){
function openIndex( required any indexName, any params ){
var requestBuilder = getNodePool()
.newRequest( "#arrayToList( arguments.indexName )#/_open", "POST" )
.asJSON();
Expand All @@ -560,13 +560,13 @@ component accessors="true" threadSafe singleton {

/**
* Close the given index/indices.
*
*
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-close.html
*
* @indexName string|array Index name or alias. Can accept an array of index/alias names, as well as wildcard expressions or `_all`.
* @params struct Struct of query parameters to influence the request. For example: `{ "expand_wildcards" : "none" }
*/
function closeIndex( required string indexName, any params ){
function closeIndex( required any indexName, any params ){
var requestBuilder = getNodePool()
.newRequest( "#arrayToList( arguments.indexName )#/_close", "POST" )
.asJSON();
Expand Down

0 comments on commit 260d63e

Please sign in to comment.