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
Please use the following questions as a guideline to help me answer your issue/question without further inquiry. Thank you.
[x] elastic.v7 (for Elasticsearch 7.x) [ ] elastic.v6 (for Elasticsearch 6.x) [ ] elastic.v5 (for Elasticsearch 5.x) [ ] elastic.v3 (for Elasticsearch 2.x) [ ] elastic.v2 (for Elasticsearch 1.x)
NewPrefixQuery("foo", "bar").CaseInsensitive(true)
should yield:
{ "prefix": { "foo": { "case_insensitive": true, "value": "bar" } } }
yields:
{ "prefix": { "foo": "bar" } }
PrefixQuery.Source() fails to check if the case-insensitive property has been set before defaulting to generating the short request form:
PrefixQuery.Source()
--- a/search_queries_prefix.go +++ b/search_queries_prefix.go @@ -52,7 +52,7 @@ func (q *PrefixQuery) Source() (interface{}, error) { query := make(map[string]interface{}) source["prefix"] = query - if q.boost == nil && q.rewrite == "" && q.queryName == "" { + if q.boost == nil && q.rewrite == "" && q.caseInsensitive == nil && q.queryName == "" { query[q.name] = q.prefix } else { subQuery := make(map[string]interface{})
Set the CaseInsensitive() property of PrefixQuery and no other optional properties.
CaseInsensitive()
PrefixQuery
The text was updated successfully, but these errors were encountered:
Thanks for reporting. Will fix it in the next release.
Sorry, something went wrong.
NewWildcardQuery is missing "CaseInsensitive". Maybe this can be added everywhere where Elastic allowes "case_insensitive" (since 7.10.0)?
@martinrode WildcardQuery already has CaseSensitive in 7.0.29. Will look for the other cases.
CaseSensitive
da7a99e
olivere
No branches or pull requests
Please use the following questions as a guideline to help me answer
your issue/question without further inquiry. Thank you.
Which version of Elastic are you using?
[x] elastic.v7 (for Elasticsearch 7.x)
[ ] elastic.v6 (for Elasticsearch 6.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v2 (for Elasticsearch 1.x)
Please describe the expected behavior
should yield:
Please describe the actual behavior
yields:
PrefixQuery.Source()
fails to check if the case-insensitive property has been set before defaulting to generating the short request form:Any steps to reproduce the behavior?
Set the
CaseInsensitive()
property ofPrefixQuery
and no other optional properties.The text was updated successfully, but these errors were encountered: