close
Skip to content

Consistency problem when using 'fields' parameter in a search #26

@tiagorm

Description

@tiagorm

We used the 'fields' parameter on a search query to select only a few fields from our documents. When esengine constructed the objects with the results of the search, all the other unselected fields from the mapping of the document where initialized with a default value, which were different from what was really stored.

ESEngine should raise an exception if someone tries to use unselected fields. Another possible solution would be to create a view document.

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