We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using script_score throws ValueError(Q() can only accept dict with a single query...
script_score
ValueError(Q() can only accept dict with a single query...
{ "query": { "script_score": { "query": { "match_all": {} }, "script": { "source": """ double weight = 1; if (doc['type'].value == 'REVIEW') { weight = 1.03; } return weight * decayDateExp(params.origin, params.scale, params.offset, params.decay, doc['modified'].value); """, "params": { "origin": "2020-10-30T00:00:00", "scale": "30d", "offset": "1h", "decay": 0.8 } } } } }
I'm trying to convert the above but so far unsuccessful.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Using
script_score
throwsValueError(Q() can only accept dict with a single query...
I'm trying to convert the above but so far unsuccessful.
The text was updated successfully, but these errors were encountered: