Skip to content
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

Supporting script_score Query in DSL (not FunctionScore) #1344

Closed
mhnamaki opened this issue Apr 17, 2020 · 2 comments
Closed

Supporting script_score Query in DSL (not FunctionScore) #1344

mhnamaki opened this issue Apr 17, 2020 · 2 comments

Comments

@mhnamaki
Copy link

Hey,
I have checked both docs and tests available for the project. However, I couldn't find a way to formulate a script_query that does not have any function_score.

Indeed, let's assume I have the following desired query packed in a dictionary, how could I'd written it using elasticsearch_dsl?

query_dict = {
            "query": {
                "script_score": {
                    "query": Q(...)
                },
                "script": {
                    "source": "..."
                }
            }
        }

Link to script_score query in ElasticSearch that does not usefunction_score

@ronaktanna1
Copy link

Is there any update on this?

@sethmlarson
Copy link
Contributor

Closed in #1464

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

No branches or pull requests

3 participants