-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Deserializing a list #2652
Comments
@GaryTurpin Is the |
@russcam The field is stored separately. I found a workaround using:
If I uses this with lamba notation:
it will return a List<List> opposed to List. |
Glad you found the methods that return an array of values 👍 With var ListOfFoo = hit.Fields.Values<ESDocument,string>(p => p.Foo).ToList(); I'm going to close this issue. |
NEST/Elasticsearch.Net version:
2.5.2
Elasticsearch version:
2.4.4
Description of the problem including expected versus actual behavior:
I am having a problem upgrading to the latest version of ES 2.X from ES 1.7 when deserializing my data. The problem only existing when trying to pull in a List<>. I know in 1.X I have it setup like the following issue #227 but it doesnt seem to work correctly for me in ES 2.X. Is there something I am missing?
ESDocument
Getting stuff out of an IHit
The text was updated successfully, but these errors were encountered: