-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Remove quotes around placeholders in Elasticsearch custom query #762
Conversation
8ded227
to
6015949
Compare
test/test_elastic_retriever.py
Outdated
"query": { | ||
"bool": { | ||
"should": [{ | ||
"multi_match": {"query": "${query}", "type": "most_fields", "fields": ["text"]}}], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it "${query}"
here but one line afterwards it's only ${years}
without quotation marks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's inconsistent. I removed quotes around the query
placeholder as well.
0479ed3
to
1338e6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Can you please add a "before vs. after" code snippet for the breaking change (so that we can easily copy & paste it to the next release notes)? |
This PR removes quotes around placeholders in Elasticsearch
custom_query
parameter.Before
The placeholder terms(
$query
,$years
) had quotes around them. For instance,Now
The placeholders must be used without quotes. For instance,