-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix 5.x obsolete warnings #3217
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
Conversation
codebrain
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments
| /// Stores a search template that can be used to pre render search requests, | ||
| /// before they are executed and fill the search template with template parameters. | ||
| /// </summary> | ||
| [Obsolete("Removed in NEST 6.x. In NEST 6.x, use the PutScript API to store templates")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in NEST 6.x, use the PutScript API to store templates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few instances that have this phrasing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users should continue to use PutSearchTemplate in 5.x, but when moving to 6.x, should use PutScript. I thought it was ambiguous when In NEST 6.x, is left out as to whether users should transition to PutScript now or when they move to 6.x, so thought it was clearer to indicate when users should move to using PutScript
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that clear? 😄
| protected override bool ExpectIsValid => true; | ||
| protected override HttpMethod HttpMethod => HttpMethod.POST; | ||
| protected override string UrlPath => "/project/_suggest"; | ||
| protected override string UrlPath => "/project/project/_search"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/project/project?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{index}/{type}/_search
This PR fixes the compile warnings from the introduction of
ObsoleteAttributeto methods and types that are removed in 6.x