Skip to content

How can I retrieve the document Id from IMultiTermVectorsResponse? #1866

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
crjackso opened this issue Feb 25, 2016 · 2 comments
Closed

How can I retrieve the document Id from IMultiTermVectorsResponse? #1866

crjackso opened this issue Feb 25, 2016 · 2 comments

Comments

@crjackso
Copy link

Hi,

I'm having trouble determining how I can retrieve the corresponding document ids in a IMultiTermVectorsResponse instance. This issue is similar to the one listed in issue #1484. A solution was added for this issue, but it looks like the solution may have been removed as part of a set of breaking changes due to many version updates since then.

I'm using NEST version 2.02.

` var termVectorResponse = ElasticClient.MultiTermVectors(new MultiTermVectorsRequest(IndexName, Type)
        {          
            Documents = documentIds.Select(id => new MultiTermVectorOperation<Document>(id)
            {
               ...
            })
        });
        termVectorResponse.Documents.Select(termVectorsResponse =>
        {
            // how do I get the document Id
            termVectorsResponse.DocId = ???
        }); `
@russcam
Copy link
Contributor

russcam commented Mar 2, 2016

Hey @crjackso, thanks for reporting. This looks like it's been missed and will make it into the next release 👍

@crjackso
Copy link
Author

crjackso commented Mar 3, 2016

Thanks! Looks good.

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

2 participants