Skip to content

Allow analysis components to be specified in Analyze API requests #2683

@russcam

Description

@russcam

The Analyze API supports composing transient analyzers from built-in components, allowing configuration for components that have options, to be specified using object notation:

GET _analyze
{
    "tokenizer" : "standard",
    "char_filter": [{ "type": "mapping", "mappings": ["F# => FSharp"] }],
    "filter": ["lowercase", { "type": "stop", "stopwords": ["_english_", "the"] }],
    "text" : ["F# is THE SUPERIOR language :)"]
}

NEST currently supports only sending string arrays for char_filter, filter, analyzer and tokenizer. This should be changed to also support analysis components with options.

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