-
Notifications
You must be signed in to change notification settings - Fork 732
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
QueryBuilder not generating the right match query #796
Comments
@webdevsHub Can you have a look here? |
webdevsHub
added a commit
to webdevsHub/Elastica
that referenced
this issue
Mar 12, 2015
webdevsHub
added a commit
to webdevsHub/Elastica
that referenced
this issue
Mar 12, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
It seems that the QueryBuilder, when asked to generate a match() query, doesn't generate the right DSL.
will generate the following Elasticsearch JSON:
Which is the wrong syntax, as the match query should be:
as defined here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-match-query.html#query-dsl-match-query
The problem seems to come from the QueryBuilder code:
https://github.com/ruflin/Elastica/blob/master/lib/Elastica/QueryBuilder/DSL/Query.php#L67
When replacing the following line:
by
the resulting syntax is correct and the query works well.
What do you think guys ? Is there something I'm doing wrongly or there's a problem with the QueryBuilder DSL Query part for the match query ?
Thanks !
The text was updated successfully, but these errors were encountered: