-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] Introduce Template query #17105
base: 2.x
Are you sure you want to change the base?
Conversation
Introduce template query that holds the content of query which can contain placeholders and can be filled by the variables from PipelineProcessingContext produced by search processors. This allows query rewrite by the search processors. --------- Signed-off-by: Mingshi Liu <[email protected]> Co-authored-by: Michael Froh <[email protected]> (cherry picked from commit 13ab4ec) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #17105 +/- ##
============================================
+ Coverage 71.90% 71.97% +0.07%
- Complexity 65701 65737 +36
============================================
Files 5322 5325 +3
Lines 306191 306276 +85
Branches 44650 44656 +6
============================================
+ Hits 220177 220453 +276
+ Misses 67668 67386 -282
- Partials 18346 18437 +91 ☔ View full report in Codecov by Sentry. |
I believe with the failure from the "Detect Breaking Changes" action, we can't backport this change to 2.x. As @dbwiddis called out on the original issue, we're making changes to classes that are marked as My suggestion would be to close this PR and open a new one against |
@mingshl please check this issue for the motivation (#8127), in the nutshell this is how it works, by example of
Does it make sense to you? Thank you. |
thanks @reta! I see. This change might impact neural search plugin and learn to rank |
Yeah, our promise is to not have breaking API changes in the minor releases, these the plugins that you know will be impacted, but there are potentially many plugins that we don't know about but should not break. |
In theory the plugins can and should take a We really need to adopt JPMS one day to clarify what classes are "public API". Until then, we can mostly only assume that any |
@msfroh I believe we relaxed the compatibility check to exclude constructors for exactly this reason. However the change from a concrete class to an interface is probably no good. We might be able to massage this in to a compatible change if that's desired. Or we can just punt it to the 3.0 release. |
When writing the The reason for needing the concrete class is different but the solution is the same.
See example of this pattern:
CC: @mingshl |
Backport 13ab4ec from #16818.