Skip to content

Dictionary Order  #68

@jeffsteinmetz

Description

@jeffsteinmetz

Has anybody found an intuitive way to enforce the dictionary order used when creating a document? (I know about OrderedDict in python 2.7 - but that seems overkill for the elasticsearch use case - and I don't know if it even works with this ES Python client).

for example, indexing a document using python as:

doc = { "a":"a", "b":"b", "c":"c" }

doc may actually get sorted by python in any random order, and looking inside ElasticSearch, you may get

 { "a":"a", "c":"c", "b":"b" }

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