Skip to content

Error deserializing co.elastic.clients.elasticsearch._types.analysis.Analyzer: Property 'type' not found #392

Closed
@pasupathi-rajamanickam-odp

Description

Java API client version

8.4.0

Java version

JDK-17

Elasticsearch Version

7.17.2

Problem description

Trying to read settings for an index, throwing Error deserializing co.elastic.clients.elasticsearch._types.analysis.Analyzer: Property 'type' not found Exception


var indexSetting = new GetIndicesSettingsRequest.Builder().index("index_1000").build();

try {
    var settings = elasticSearchClientConfig.getElasticsearchIndicesClient().getSettings(indexSetting);
    System.out.println(settings);
} catch(Exception e) {
    e.printStackTrace();
}

Settings

{
    "index_1000": {
        "settings": {
            "index": {
                "analysis": {
                    "analyzer": {
                        "edgengram-analyzer": {
                            "tokenizer": "edge_ngram_tokenizer"
                        }
                    }
                }
            }
        }
    }
}

Exception trace

Error deserializing co.elastic.clients.elasticsearch._types.analysis.Analyzer: Property 'type' not found (JSON path: index_1000.settings.index.analysis.analyzer['edgengram-analyzer']) (line no=1, column no=56407, offset=-1)

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