Skip to content

ElasticSearch.search() source parameter doesn't make sense #2961

Open
@Dreamsorcerer

Description

@Dreamsorcerer

The docs say The source fields that are returned for matching documents.. How am I supposed to define the source fields with a type of bool | Mapping[str, Any] | None?
https://elasticsearch-py.readthedocs.io/en/v8.18.1/api/elasticsearch.html#elasticsearch.Elasticsearch.search

Any examples I can find online all do _source=["field"], which neither matches the name nor the type...

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