We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06fba79 commit ddf8ec6Copy full SHA for ddf8ec6
elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb
@@ -66,7 +66,7 @@ def termvectors(arguments = {})
66
Elasticsearch::API::HTTP_GET
67
end
68
69
- endpoint = arguments.delete(:endpoint) || '_termvectors'
+ arguments.delete(:endpoint)
70
path = if _index && _id
71
"#{Utils.__listify(_index)}/_termvectors/#{Utils.__listify(_id)}"
72
else
@@ -82,6 +82,7 @@ def termvectors(arguments = {})
82
# Deprecated: Use the plural version, {#termvectors}
83
#
84
def termvector(arguments = {})
85
+ warn '[DEPRECATION] `termvector` is deprecated. Please use the plural version, `termvectors` instead.'
86
termvectors(arguments.merge(endpoint: '_termvector'))
87
88
0 commit comments