Skip to content

Commit 94dbb15

Browse files
committed
filters is now filter in Analyze endpoint
1 parent bece0e5 commit 94dbb15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Elasticsearch/Endpoints/Indices/Analyze.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function getParamWhitelist()
5656
return array(
5757
'analyzer',
5858
'field',
59-
'filters',
59+
'filter',
6060
'index',
6161
'prefer_local',
6262
'text',

src/Elasticsearch/Namespaces/IndicesNamespace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ public function open($params)
929929
* $params['index'] = (string) The name of the index to scope the operation
930930
* ['analyzer'] = (string) The name of the analyzer to use
931931
* ['field'] = (string) Use the analyzer configured for this field (instead of passing the analyzer name)
932-
* ['filters'] = (list) A comma-separated list of filters to use for the analysis
932+
* ['filter'] = (list) A comma-separated list of filters to use for the analysis
933933
* ['prefer_local'] = (boolean) With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true)
934934
* ['text'] = (string) The text on which the analysis should be performed (when request body is not used)
935935
* ['tokenizer'] = (string) The name of the tokenizer to use for the analysis

0 commit comments

Comments
 (0)