Skip to content
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

Fix preset output map configs for ML processors #473

Merged
merged 5 commits into from
Nov 12, 2024

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Nov 11, 2024

Description

Recent PRs have reversed the way we persist the form values for the output map. A few util fns for generating preset mappings, transforms, etc. had been left behind. This PR fixes the outdated logic. Tested with several variations of vector search use cases to verify the prefilled data works as expected.

Also, fixes a bug of array outputs from JSONPath transforms being indexed different based on ML processor output vs. vanilla JSONPath output - we replicate the logic to be consistent with ML processors to prevent user confusion, such that the example transform is the same as the indexed transform when performing actual ingest/search.

Also, removes the extra logic that hides the 'query_template' field for ML search request processors. Instead, just expose it as a normal advanced setting. Still leaves the dedicated modal for configuring the query override.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ohltyler ohltyler added bug Something isn't working backport 2.x labels Nov 11, 2024
@ohltyler ohltyler changed the title Fix preset configs for ML processors Fix preset output map configs for ML processors Nov 11, 2024
@ohltyler ohltyler force-pushed the output-map-bug-fixes branch from 96b01c9 to 291be9d Compare November 11, 2024 19:30
@ohltyler ohltyler merged commit 0c89ccc into opensearch-project:main Nov 12, 2024
6 of 7 checks passed
@ohltyler ohltyler deleted the output-map-bug-fixes branch November 12, 2024 16:28
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 12, 2024
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 0c89ccc)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ohltyler pushed a commit that referenced this pull request Nov 12, 2024
(cherry picked from commit 0c89ccc)

Signed-off-by: Tyler Ohlsen <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants