Skip to content

Commit

Permalink
Add missing params to Analyze endpoint: char_filter, format, `att…
Browse files Browse the repository at this point in the history
…ributes`, `explain`
  • Loading branch information
polyfractal committed May 9, 2016
1 parent 94dbb15 commit 8a0a932
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Elasticsearch/Endpoints/Indices/Analyze.php
Expand Up @@ -62,6 +62,10 @@ protected function getParamWhitelist()
'text',
'tokenizer',
'format',
'char_filter',
'explain',
'attributes',
'format'
);
}

Expand Down
6 changes: 5 additions & 1 deletion src/Elasticsearch/Namespaces/IndicesNamespace.php
Expand Up @@ -929,12 +929,16 @@ public function open($params)
* $params['index'] = (string) The name of the index to scope the operation
* ['analyzer'] = (string) The name of the analyzer to use
* ['field'] = (string) Use the analyzer configured for this field (instead of passing the analyzer name)
* ['filter'] = (list) A comma-separated list of filters to use for the analysis
* ['filter'] = (list) A comma-separated list of filters to use for the analysis
* ['prefer_local'] = (boolean) With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true)
* ['text'] = (string) The text on which the analysis should be performed (when request body is not used)
* ['tokenizer'] = (string) The name of the tokenizer to use for the analysis
* ['format'] = (enum) Format of the output
* ['body'] = (enum) Format of the output
* ['char_filter'] = (list) A comma-separated list of character filters to use for the analysis
* ['explain'] = (bool) With `true`, outputs more advanced details. (default: false)
* ['attributes'] = (list) A comma-separated list of token attributes to output, this parameter works only with `explain=true`
* ['format'] = (enum) Format of the output (["detailed", "text"])
*
* @param $params array Associative array of parameters
*
Expand Down

0 comments on commit 8a0a932

Please sign in to comment.