@@ -19,19 +19,19 @@ module Elasticsearch
1919 module API
2020 module Security
2121 module Actions
22- # Searches for user profiles that match specified criteria.
22+ # Get suggestions for user profiles that match specified search criteria.
2323 # This functionality is Experimental and may be changed or removed
2424 # completely in a future release. Elastic will take a best effort approach
2525 # to fix any issues, but experimental features are not subject to the
2626 # support SLA of official GA features.
2727 #
2828 # @option arguments [List] :data A comma-separated list of keys for which the corresponding application data are retrieved.
2929 # @option arguments [Hash] :headers Custom HTTP headers
30- # @option arguments [Hash] :body The search definition for user profiles
30+ # @option arguments [Hash] :body The suggestion definition for user profiles
3131 #
32- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-search -user-profile.html
32+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-suggest -user-profile.html
3333 #
34- def search_user_profiles ( arguments = { } )
34+ def suggest_user_profiles ( arguments = { } )
3535 arguments = arguments . clone
3636 headers = arguments . delete ( :headers ) || { }
3737
@@ -43,7 +43,7 @@ def search_user_profiles(arguments = {})
4343 Elasticsearch ::API ::HTTP_GET
4444 end
4545
46- path = "_security/profile/_search "
46+ path = "_security/profile/_suggest "
4747 params = Utils . process_params ( arguments )
4848
4949 Elasticsearch ::API ::Response . new (
0 commit comments