Skip to content

export QueryRewriteInterceptor to the world #120034

@scampi

Description

@scampi

Description

The QueryRewriteInterceptor interface is a nice addition to Elasticsearch that allows for interesting custom query logic for plugins.
Although it is made available to plugins via the SearchPlugin interface, it cannot be used actually by plugins because its package is not exported to the world (just to org.elasticsearch.inference, see below).

Please consider exporting the package to the world so plugins can benefit from it!

* @return Applicable {@link QueryRewriteInterceptor}s configured for this plugin.
* Note: This is internal to Elasticsearch's API and not extensible by external plugins.
*/
default List<QueryRewriteInterceptor> getQueryRewriteInterceptors() {

exports org.elasticsearch.plugins.internal.rewriter to org.elasticsearch.inference;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions