-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More consistent naming for term vector[s] #8484
Conversation
We speak of the term vectors of a document, where each field has an associated stored term vector. Since by default we are requesting all the term vectors of a document, the HTTP request endpoint should rather be called `_termvectors` instead of `_termvector`. The usage of `_termvector` is now deprecated, as well as the transport client call to termVector and prepareTermVector.
The change looks good to me. @clintongormley Could you just confirm that it's ok to break it for 2.0? |
@jpountz +1 - the old |
Shouldn't this be marked as "breaking" since it breaks the Java API compatibility? |
The old usage is still supported though. |
Yes, for the REST side, on the Java side, TermVectorRequestBuilder became TermVectorsRequestBuilder and TermVectorResponse became TermVectorsResponse, which will cause compilation errors for Java API users |
On the Java client side you can still call on Client#termVector, but I agree for the other classes. So I'll mark it as breaking. Thanks! |
This endpoint was replaced by _termvectors (plural) in #8484. We deprecated the relevant transport client methods, but didn't introduce a deprecation warning. My plan was to add a deprecation warning in 6.6, and stop supporting this endpoint in 7.0.
We speak of the term vectors of a document, where each field has an associated
stored term vector. Since by default we are requesting all the term vectors of
a document, the HTTP request endpoint should rather be called
_termvectors
instead of
_termvector
. The usage of_termvector
is now deprecated, aswell as the transport client call to termVector and prepareTermVector.