Skip to content

Commit 8a0a932

Browse files
committed
Add missing params to Analyze endpoint: char_filter, format, attributes, explain
1 parent 94dbb15 commit 8a0a932

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/Elasticsearch/Endpoints/Indices/Analyze.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ protected function getParamWhitelist()
6262
'text',
6363
'tokenizer',
6464
'format',
65+
'char_filter',
66+
'explain',
67+
'attributes',
68+
'format'
6569
);
6670
}
6771

src/Elasticsearch/Namespaces/IndicesNamespace.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,12 +929,16 @@ 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-
* ['filter'] = (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
936936
* ['format'] = (enum) Format of the output
937937
* ['body'] = (enum) Format of the output
938+
* ['char_filter'] = (list) A comma-separated list of character filters to use for the analysis
939+
* ['explain'] = (bool) With `true`, outputs more advanced details. (default: false)
940+
* ['attributes'] = (list) A comma-separated list of token attributes to output, this parameter works only with `explain=true`
941+
* ['format'] = (enum) Format of the output (["detailed", "text"])
938942
*
939943
* @param $params array Associative array of parameters
940944
*

0 commit comments

Comments
 (0)