Skip to content

Custom Query Rescorer #506

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

Closed
dmalipie opened this issue Feb 9, 2023 · 2 comments · Fixed by #776
Closed

Custom Query Rescorer #506

dmalipie opened this issue Feb 9, 2023 · 2 comments · Fixed by #776

Comments

@dmalipie
Copy link

dmalipie commented Feb 9, 2023

Description

Java API client version
8.5.3+

Java version
17

Elasticsearch Version
7.17.* - 8.*

Problem description

We have install a rescore plugin just like this one .

To use it we send a request like this:

[POST] /_search

{
    "query": {
         "match_all": {}
    },
    "rescore": {
        "example": {
            "factor": 2
        }
    }
} 

Unfortunately the Rescore model (co.elastic.clients.elasticsearch.core.search.Rescore) allows only the use of a RescoreQuery model that will be serialized as:

{
    "rescore": {
        "query": {
            "rescore_query": {
                "match_phrase": {
                    "message": {
                        "query": "the quick brown",
                        "slop": 2
                    }
                }
            }
        }
    }
} 

Is it possible to add a new feature to define a Rescore model with a custom model to allow us to use a rescorer plugin ?

@edovac
Copy link

edovac commented Sep 19, 2023

Can we have at least a triage of this issue?

@bajibalu
Copy link

Hi, I am also running into this issue now after upgrading from Elasticsearch 7 to 8. Can we please have this issue triaged? I am happy to contribute as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants