-
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
[Backport 2.x] [DerivedField] Support DerivedField object type and integration with Mapper #14105
Conversation
…Mapper (#13720) * Support DerivedField object type * ValueFetcher for DerivedField of object type to parse and fetch nested fields. * DerivedFieldResolver to resolve DerivedField type on the fly. * Introduction of new support types - text, float. * Use index analyzer for derived fields set in index settings. * Support of derived fields from query string * Unit tests Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Derived field object type properties to also support Object as a value Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Index and cluster setting to control derived fields Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Fix test Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Fixed missing javadoc Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Fix the rewrite issue when profile is set as true Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Address PR comments Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Address PR comments Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Use conjuction query with filter on source_indexed_field query and DerivedFieldQuery Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * support source_indexed_field for non-object type derived fields Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * rename source_indexed_field to prefilter_field Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> --------- Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> (cherry picked from commit 9da6170) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
There are changes in following classes because of which breaking change check is failing -
Since |
This PR should not have been merged with the failing compat check, as future PRs to 2.x will fail now because the check compares against the 2.14 released artifacts. @rishabhmaurya is going to raise a PR to add back the public methods that were removed. |
My bad. Will be more careful with this moving forward. |
…Mapper (opensearch-project#13720) (opensearch-project#14105) * Support DerivedField object type * ValueFetcher for DerivedField of object type to parse and fetch nested fields. * DerivedFieldResolver to resolve DerivedField type on the fly. * Introduction of new support types - text, float. * Use index analyzer for derived fields set in index settings. * Support of derived fields from query string * Unit tests * Derived field object type properties to also support Object as a value * Index and cluster setting to control derived fields * Fix test * Fixed missing javadoc * Fix the rewrite issue when profile is set as true * Address PR comments * Address PR comments * Use conjuction query with filter on source_indexed_field query and DerivedFieldQuery * support source_indexed_field for non-object type derived fields * rename source_indexed_field to prefilter_field --------- (cherry picked from commit 9da6170) Signed-off-by: Rishabh Maurya <rishabhmaurya05@gmail.com> 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> Signed-off-by: kkewwei <kkewwei@163.com>
Backport 9da6170 from #13720.