Skip to content

ESQL: Fix wildcard for _index field #129650

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

Closed
wants to merge 3 commits into from
Closed

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Jun 18, 2025

This is a fairly hacky fix for #129511, a bug where we don't run LIKE against the _index field in a consistent way. I feel like there should be a better way to fix this, but should work.

This is a fairly hacky fix for elastic#129511, a bug where we don't run `LIKE`
against the `_index` field in a consistent way. I feel like there should
be a better way to fix this, but should work.
@elasticsearchmachine
Copy link
Collaborator

Hi @nik9000, I've created a changelog YAML for you.

@nik9000
Copy link
Member Author

nik9000 commented Jun 18, 2025

I'm opening this as draft because I have a failing test. It also contains all of my println debugging. But it shows a "small" fix for this bug. I think a better fix is to make each field type have a method for a proper, Automaton-taking, text matching query. We can plug into that method in ESQL. Mostly it's just the wildcardQuery method - but for this one case it isn't. hell, maybe that's easier to write than I think......

@nik9000
Copy link
Member Author

nik9000 commented Jul 17, 2025

@julian-elastic fixed this in #130849

@nik9000 nik9000 closed this Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants