Skip to content

Commit

Permalink
Add 's' sort param to all Cat endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Oct 25, 2016
1 parent f380a69 commit 87f23a1
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Elasticsearch/Endpoints/Cat/Aliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public function getParamWhitelist()
'h',
'help',
'v',
'format'
'format',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Allocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Count.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Fielddata.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Health.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function getParamWhitelist()
'help',
'ts',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Help.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function getParamWhitelist()
{
return array(
'help',
's'
);
}

Expand Down
3 changes: 2 additions & 1 deletion src/Elasticsearch/Endpoints/Cat/Indices.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public function getParamWhitelist()
'help',
'pri',
'v',
'health'
'health',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Master.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/NodeAttrs.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Nodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/PendingTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Recovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Repositories.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Segments.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Elasticsearch/Endpoints/Cat/Shards.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
4 changes: 3 additions & 1 deletion src/Elasticsearch/Endpoints/Cat/Snapshots.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Elasticsearch\Endpoints\Cat;

use Elasticsearch\Common\Exceptions\RuntimeException;
use Elasticsearch\Endpoints\AbstractEndpoint;

/**
Expand Down Expand Up @@ -39,7 +40,7 @@ public function setRepository($repository)
public function getURI()
{
if (isset($this->repository) !== true) {
throw new Exceptions\RuntimeException(
throw new RuntimeException(
'repository is required for Cat Snapshots '
);
}
Expand All @@ -59,6 +60,7 @@ public function getParamWhitelist()
'h',
'help',
'v',
's'
);
}

Expand Down
3 changes: 2 additions & 1 deletion src/Elasticsearch/Endpoints/Cat/Tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function getParamWhitelist()
'parent_task',
'h',
'help',
'v'
'v',
's'
);
}

Expand Down
3 changes: 2 additions & 1 deletion src/Elasticsearch/Endpoints/Cat/ThreadPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public function getParamWhitelist()
'v',
'full_id',
'size',
'thread_pool_patterns'
'thread_pool_patterns',
's'
);
}

Expand Down

0 comments on commit 87f23a1

Please sign in to comment.