Skip to content

How to remove the _class field when automatically creating index and how to specify what fields we want return in query? #1883

Closed
@fengnex

Description

@fengnex

There are two questions:

  1. A field named _class will be inserted automatically when spring-data-elasticsearch creates an index, even though it is not desired. I wonder how to avoid that.
  2. *Repository always return ALL fields from elasticsearch after querying, and how to specify the fields we want to return? Not ALL.

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