Type alias CreateNormAnalyzerOptions

CreateNormAnalyzerOptions: {
    features?: AnalyzerFeature[];
    properties: {
        accent?: boolean;
        case?: "lower" | "none" | "upper";
        locale: string;
    };
    type: "norm";
}

Options for creating a Norm Analyzer.

Type declaration

  • Optional features?: AnalyzerFeature[]

    Features to enable for this Analyzer.

  • properties: {
        accent?: boolean;
        case?: "lower" | "none" | "upper";
        locale: string;
    }

    Additional properties for the Analyzer.

    • Optional accent?: boolean

      Preserve accents in returned words.

      Default: false

    • Optional case?: "lower" | "none" | "upper"

      Case conversion.

      Default: "lower"

    • locale: string

      Text locale.

      Format: language[_COUNTRY][.encoding][@variant]

  • type: "norm"

    Type of the Analyzer.