Skip to content

with_positions_payloads enum value is missing in src/Nest/Mapping/TermVectorOption.cs #6078

@vkras

Description

@vkras

NEST/Elasticsearch.Net version:
7.14.1 (latest)

Elasticsearch version:
7.16.3 (latest)

.NET runtime version:
.Net.core 3.1

Operating system version:
Windows 10

Description of the problem including expected versus actual behavior:
One of the 7 enum values is missing. It causes a crash on deserialization of the response for a template or index definition:
var response = _elasticClient.Indices.GetTemplate(name);
FailureReason: Unrecoverable/Unexpected BadResponse while attempting GET on https://192.168.xx.xx:9200/_template/dev
System.ArgumentException: Requested value 'with_positions_payloads' was not found.

Steps to reproduce:

  1. Create a template or index with one of the fields set to
    "field": {
    "analyzer": "whitespace_apostrophe_delimited",
    "term_vector": "with_positions_payloads",
    "type": "text"
    },
  2. Try to get mapping via Indices.GetTemplate(name)

Expected behavior
No exceptions, response is correctly processed

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