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

Querying nested fields #36

Closed
DarrylD opened this issue Jul 20, 2016 · 9 comments
Closed

Querying nested fields #36

DarrylD opened this issue Jul 20, 2016 · 9 comments

Comments

@DarrylD
Copy link

DarrylD commented Jul 20, 2016

Attempting to do something along the lines of this:
https://www.elastic.co/guide/en/elasticsearch/guide/current/nested-query.html

Got the follow error when attempting to use nested as a query type:
Query type nested not found.

Any way to query nested fields?

@gauravarora
Copy link

Looking at the code I could not find a nest query type so the error is correct. I suppose you will need something along the lines of a nested aggregation for queries as well.

@danpaz
Copy link
Owner

danpaz commented Jul 23, 2016

There is a nested filter type which is probably what you want except for a filter. If so, could duplicate that logic for queries as well.

@slackbits
Copy link

Nested filters have been removed in 2.x. So the filter would only be appropriate in 1.x.

@bryanpizzillo
Copy link

I am adding a nested query in for something I am working on and send a pull request when done.

@parthdesai93
Copy link

I se this is still open. Do you mind if i send a pull request and try to work on it.

@danpaz
Copy link
Owner

danpaz commented Oct 15, 2016

@parthdesai93 sounds great to me!

@alexcastillo
Copy link

+1

@danpaz
Copy link
Owner

danpaz commented Nov 11, 2016

We're trying out a new approach to composing builders, which would also include the ability to write nested queries. Check out the experimental branch #71 if you're interested and to leave any feedback you may have.

@danpaz
Copy link
Owner

danpaz commented Jan 17, 2017

The next version of bodybuilder will support nested queries, give it a try by installing the beta release:

npm install bodybuilder@beta

And see this example for its usage.

If this doesn't solve your issue please reopen!

@danpaz danpaz closed this as completed Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants