Skip to content

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

Closed
@crjackso

Description

@crjackso

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 = ???
        }); `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions