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

Support partial match in PPL #183

Closed
prashanttct07 opened this issue Aug 19, 2021 · 2 comments
Closed

Support partial match in PPL #183

prashanttct07 opened this issue Aug 19, 2021 · 2 comments
Labels
enhancement New feature or request PPL Piped processing language

Comments

@prashanttct07
Copy link

Is your feature request related to a problem? Please describe.
PPL does not allow to run partial search, something like an equivalent of query-string or match query.
Consider I have a document with as "title":"learning opensearch is fun"
Now if I want to get all the document where "fun" is present, as of now there is no way to run this kind of filter. And I need to run search source=my_index | where title="learning opensearch is fun"

Describe the solution you'd like
I would like the PPL to run query something like:
search source=my_index | where title="fun" or search source=my_index | where title="*fun*"
And above query would get me if it matches the document with partial data on title.

Describe alternatives you've considered
Instead of using PPL, I am using regular GET API with query_string/match query

@prashanttct07 prashanttct07 added the enhancement New feature or request label Aug 19, 2021
@anirudha
Copy link
Collaborator

thanks pls review #182

@dai-chen
Copy link
Collaborator

dai-chen commented Aug 9, 2022

@prashanttct07 Thanks for reporting the issue! The full text search function you mentioned is already supported in PPL. Please check out https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/functions/relevance.rst

@dai-chen dai-chen closed this as completed Aug 9, 2022
@dai-chen dai-chen added the PPL Piped processing language label Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PPL Piped processing language
Projects
None yet
Development

No branches or pull requests

3 participants