-
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
[Search Pipelines] Add request-scoped state shared between processors #9405
Commits on Dec 5, 2023
-
[Search Pipelines] Add request-scoped state shared between processors
To handle cases where multiple search pipeline processors need to share information, we will allocate a Map<String, Object> for the lifetime of the request and pass it to each processor to get/set values. Signed-off-by: Michael Froh <froh@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for 634b6cc - Browse repository at this point
Copy the full SHA 634b6ccView commit details -
More work on stateful pipeline processors
Added "context_prefix" convention to scope variables to avoid collisions. Let script processor have access to the request context. Added more unit tests. Signed-off-by: Michael Froh <froh@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for 5073026 - Browse repository at this point
Copy the full SHA 5073026View commit details -
Clean up and test CollapseResponseProcessor
After realizing that we just need to keep the first hit for each group (since results are already sorted by the sort criteria), I think CollapseResponseProcessor might be worth including. Combining it with the oversample + truncate processors, it can provide a workaround for the lack of support for collapse + rescore. Signed-off-by: Michael Froh <froh@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for c4c5352 - Browse repository at this point
Copy the full SHA c4c5352View commit details -
Configuration menu - View commit details
-
Copy full SHA for f627c68 - Browse repository at this point
Copy the full SHA f627c68View commit details -
Suggested changes from @noCharger
Signed-off-by: Michael Froh <froh@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for c0637dc - Browse repository at this point
Copy the full SHA c0637dcView commit details -
Add missing Javadoc and extra InternalSearchResponse case
Signed-off-by: Michael Froh <froh@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for dc22f61 - Browse repository at this point
Copy the full SHA dc22f61View commit details -
Incorporate feedback from @navneet1v
* Use default size in OversampleRequestProcessor if not specified. * Pass context to SearchPhaseResultsProcessor too. * Wrap context in its own class, in case we decide to add other fields to it in future. Signed-off-by: Michael Froh <froh@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for 7faddc5 - Browse repository at this point
Copy the full SHA 7faddc5View commit details -
Encapsulate map in PipelinedRequestContext
Signed-off-by: Michael Froh <froh@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for 545cc0a - Browse repository at this point
Copy the full SHA 545cc0aView commit details -
Rename PipelineRequestContext -> PipelineProcessingContext
Signed-off-by: Michael Froh <froh@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for a7427f9 - Browse repository at this point
Copy the full SHA a7427f9View commit details -
Move BasicMap and SearchRequestMap to parent package
Signed-off-by: Michael Froh <froh@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for 9ce4ca8 - Browse repository at this point
Copy the full SHA 9ce4ca8View commit details