Java api: add missing support for boost to GeoShapeQueryBuilder and TermsQueryBuilder#11810
Conversation
|
LGTM This made me learn about BoostableQueryBuilder, could we open a follow-up issue to make this class pkg-private? |
|
if we make |
|
My understanding is that this interface is just a way to avoid re-defining the boost method (including javadocs) on every builder since core has tens of queries. Is it more than that? If no, then plugins could just make their queries implement |
|
yes they could do that, but why would they? What's the advantage of making the interface package private in core? |
Relates to elastic#11744 Relates to elastic#11810
3222e0a to
90a7b48
Compare
|
In my opinion, it has several benefits:
I think these benefit are worth having a few duplicated lines of code in plugins. |
Both parsers support boost and parse it properly but when we create the query through java api we couldn't set the boost.
Relates to #11744