Skip to content

ElasticSearch should allow to create nested not analyzed fields [DATAES-267] #843

@spring-projects-issues

Description

@spring-projects-issues

Adile opened DATAES-267 and commented

When creating an index, spring data ES only allows to create not analyzed fields at first level.

It would be great to allow nested not analyzed fields.

Example :

@Document(indexName = "myindex", type="myindex")
public class MyClass {

@Field(type = FieldType.Nested)
  private Foo bar;
}

public class Foo {

// This field should be in not_analyzed
@Field(index = FieldIndex.not_analyzed, type = FieldType.String)
  private String data;
}

Thanks for answer


Affects: 1.3.4 (Gosling SR4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: mappingMapping and conversion infrastructuretype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions