@@ -19,19 +19,19 @@ module Elasticsearch
19
19
module API
20
20
module Security
21
21
module Actions
22
- # Searches for user profiles that match specified criteria.
22
+ # Get suggestions for user profiles that match specified search criteria.
23
23
# This functionality is Experimental and may be changed or removed
24
24
# completely in a future release. Elastic will take a best effort approach
25
25
# to fix any issues, but experimental features are not subject to the
26
26
# support SLA of official GA features.
27
27
#
28
28
# @option arguments [List] :data A comma-separated list of keys for which the corresponding application data are retrieved.
29
29
# @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
31
31
#
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
33
33
#
34
- def search_user_profiles ( arguments = { } )
34
+ def suggest_user_profiles ( arguments = { } )
35
35
arguments = arguments . clone
36
36
headers = arguments . delete ( :headers ) || { }
37
37
@@ -43,7 +43,7 @@ def search_user_profiles(arguments = {})
43
43
Elasticsearch ::API ::HTTP_GET
44
44
end
45
45
46
- path = "_security/profile/_search "
46
+ path = "_security/profile/_suggest "
47
47
params = Utils . process_params ( arguments )
48
48
49
49
Elasticsearch ::API ::Response . new (
0 commit comments