Type alias CreateNgramAnalyzerOptions

CreateNgramAnalyzerOptions: {
    features?: AnalyzerFeature[];
    properties: {
        max: number;
        min: number;
        preserveOriginal: boolean;
    };
    type: "ngram";
}

Options for creating an Ngram Analyzer.

Type declaration

  • Optional features?: AnalyzerFeature[]

    Features to enable for this Analyzer.

  • properties: {
        max: number;
        min: number;
        preserveOriginal: boolean;
    }

    Additional properties for the Analyzer.

    • max: number

      Maximum n-gram length.

    • min: number

      Minimum n-gram length.

    • preserveOriginal: boolean

      Output the original value as well.

  • type: "ngram"

    Type of the Analyzer.

Generated using TypeDoc