Skip to content

Allow to use a custom Highlighter #2125

@gwenzek

Description

@gwenzek

In Nest 2.3.2 the HighlightField uses an enum HighlighterType as Type.

This prevents to use a custom highlighter instead of one of the 3 embedded within ElasticSearch.

This is a regression from Nest 1.7 where the same field was a String, therefore allowing to put the name of an highlighter provided by a plugin.

I think having a string as Type field and a few const string inside a static HighlighterType class would give the best of both world.

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