Skip to content

Request Response Fields is null #1767

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

Closed
RobinRieger opened this issue Jan 28, 2016 · 2 comments
Closed

Request Response Fields is null #1767

RobinRieger opened this issue Jan 28, 2016 · 2 comments
Assignees

Comments

@RobinRieger
Copy link
Contributor

I have the follow simple query

var test = elasticClient.Search<ProductDoc>
    (s => s.AllTypes()
        .Take(100)
        .Skip(0)
        .Fields(fils => fils.Fields(f => f.ProductID, f => f.ProductName)));

Is the Fields in the response meant to be null? Am I mean to loop each hit to get the field values?

missing fields

fields in hits

@russcam
Copy link
Contributor

russcam commented Jan 28, 2016

Thanks for reporting, @RobinRieger 👍

@russcam russcam self-assigned this Jan 28, 2016
@Mpdreamz
Copy link
Member

Thanks @RobinRieger we had an integration test for this but that was sorely lacking some needed assertions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants