Skip to content

ExecutionHint translated improperly #1174

@pickypg

Description

@pickypg

Copy/pasted directly from http://stackoverflow.com/questions/27608753/nest-for-elasticsearch-incorrect-name-of-execution-hint

Looks like there is a problem with NEST library for ElasticSearch:

aggs = aggs.Terms(facetName, s => s.Field(facetName).Size(facetMaxCount).ExecutionHint(TermsAggregationExecutionHint.Map));

creates query:

"terms": {
    "field": "markets",
    "size": 20,
    "execution_hit": "map"
  }

execution_hit should be execution_hint, any workarounds?

Most likely cause:

https://github.com/Grastveit/NEST/blob/master/src/Nest/DSL/Aggregations/SignificantTermsAggregationDescriptor.cs#L25

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