Search Results for

    Show / Hide Table of Contents

    Class ShingleTokenFilter

    Inheritance
    object
    TokenFilterBase
    ShingleTokenFilter
    Implements
    IShingleTokenFilter
    ITokenFilter
    Inherited Members
    TokenFilterBase.Type
    TokenFilterBase.Version
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class ShingleTokenFilter : TokenFilterBase, IShingleTokenFilter, ITokenFilter

    Constructors

    | Edit this page View Source

    ShingleTokenFilter()

    Declaration
    public ShingleTokenFilter()

    Properties

    | Edit this page View Source

    FillerToken

    The string to use as a replacement for each position at which there is no actual token in the stream. For instance this string is used if the position increment is greater than one when a stop filter is used together with the shingle filter. Defaults to "_"

    Declaration
    public string FillerToken { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    MaxShingleSize

    The maximum shingle size. Defaults to 2.

    Declaration
    public int? MaxShingleSize { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    MinShingleSize

    The minimum shingle size. Defaults to 2.

    Declaration
    public int? MinShingleSize { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    OutputUnigrams

    If true the output will contain the input tokens (unigrams) as well as the shingles. Defaults to true.

    Declaration
    public bool? OutputUnigrams { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    OutputUnigramsIfNoShingles

    If output_unigrams is false the output will contain the input tokens (unigrams) if no shingles are available.

    Note if output_unigrams is set to true this setting has no effect. Defaults to false.

    Declaration
    public bool? OutputUnigramsIfNoShingles { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    TokenSeparator

    The string to use when joining adjacent tokens to form a shingle. Defaults to " ".

    Declaration
    public string TokenSeparator { get; set; }
    Property Value
    Type Description
    string

    Implements

    IShingleTokenFilter
    ITokenFilter

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • ShingleTokenFilter()
    • Properties
      • FillerToken
      • MaxShingleSize
      • MinShingleSize
      • OutputUnigrams
      • OutputUnigramsIfNoShingles
      • TokenSeparator
    • Implements
    • Extension Methods
    Back to top Generated by DocFX