Skip to content

MultiSearch with multiple document types #8079

Open
@schoder-moreno

Description

@schoder-moreno

I have a usecase where I want to use the multisearch API to search two separate indices, with differing document types. Looks like this was quite straightforward using NEST, but I can't find an easy way using Elastic.Clients.Elasticsearch 8.12.0. The type argument that is present on all the MultiSearch methods implies that returning different document types for each search is not supported. Is that correct?

I suppose I could specify TDocument as object or string and do my own serialization, but would much prefer out-of-the-box support for this. Is that something you plan to provide in the future?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions