-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Derived Fields] Add basic query support with derived fields #12508
Labels
enhancement
Enhancement or improvement to existing feature or request
Search
Search query, autocomplete ...etc
Comments
qreshi
added
enhancement
Enhancement or improvement to existing feature or request
untriaged
labels
Mar 1, 2024
I have tried adding the support for query execution (rishabhmaurya@90499bf#diff-14a9f3c687532d5bec9cf3d510a66dce6cfe38026b07eaae85fc2be2e73a96c5 ) on derived fields on top of @qreshi change https:/qreshi/OpenSearch/tree/derived-field-mapper . |
This was referenced Mar 19, 2024
8 tasks
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
Enhancement or improvement to existing feature or request
Search
Search query, autocomplete ...etc
Is your feature request related to a problem? Please describe
Once the derived field mapper is added, basic query support with derived fields will need to be implemented.
Describe the solution you'd like
Add a new Query (ex.
DerivedFieldQuery
orDerivedFieldMatchQuery
if there will be multiple types) which takes a parent query and the derived field mapper objects (there can be multiple derived fields mentioned in a query).The query will create a custom weight function (somewhat similar to
SourceFieldMatchQuery
) and execute the parent query. In the two phase iterator matches(), it will fetch the value of matching document executing the painless script associated with the runtime mapper field object. It will create a LuceneMemoryIndex
with just one field oftype
fetched from mapper field object and value just fetched using painless script by executing against matched document _source.Related component
Search
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: