-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Adding to the documentation and tests for the _none pipeline #93057
Adding to the documentation and tests for the _none pipeline #93057
Conversation
Documentation preview: |
Pinging @elastic/es-docs (Team:Docs) |
Pinging @elastic/es-data-management (Team:Data Management) |
@masseyke in your description you have both |
That was a typo. |
The only thing I'm iffy on here is the usability and hidden nature of this flag. It doesn't exactly scream |
It's a little awkward any way we do it. For example, saying |
We could have |
I think having two reserved words for the same thing might not be good either, hmm. I'd be interested in anyone else's thoughts. I guess since this feature is already here and (now has) tests and docs we could just roll with it. |
Since this already exists, I don't think we should mirror the logic with another parameter; The same reason having two setting values that do the same thing being a little clunky applies. My understanding is that the main use case for this setting in the first place is to skip running the default pipeline. The discussions we had about skipping the specific pipeline were more about handling an edge case that already made tenuous sense. Overall I think the existing |
Co-authored-by: David Kilfoyle <[email protected]>
(Optional, string) ID of the pipeline to use to preprocess incoming documents. The special pipeline | ||
name `_none` indicates no ingest pipeline will run, other than the final pipeline if it exists. |
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.
(Optional, string) ID of the pipeline to use to preprocess incoming documents. The special pipeline | |
name `_none` indicates no ingest pipeline will run, other than the final pipeline if it exists. | |
(Optional, string) ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request. If a final pipeline is configured it will always run. |
What do you think? Perhaps we could link to docs for both default pipelines and final pipelines?
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.
and
https://www.elastic.co/guide/en/elasticsearch/reference/8.6/index-modules.html#index-final-pipeline
Might also be a good idea to double check those sections. For some reason it states that _none will keep the final pipeline from running. Unless it means setting that on the index settings?
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.
Yeah that is saying that if you set the final pipeline to _none
then it will keep the final pipeline from running. I'll make that a little more clear while I'm in here. Your wording sounds good to me -- I'll change it to something more like that.
…nd final pipelines
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.
LGTM!
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.
LGTM for the doc updates! 🚀
The special pipeline name
_none
indicates that no ingest pipeline will run. This PR adds some documentation and tests to make it more clear that_none
then the default pipeline will not run_none
then the final pipeline (if it exists) will run