char

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegexpCharFilterWithOptions

func NewRegexpCharFilterWithOptions(opts map[string]interface{}) (*char.RegexpCharFilter, error)

Create new RegexpCharFilter with given options. Options example:

{
  "pattern": "foo",
  "replacement": "var"
}

func NewUnicodeNormalizeCharFilterWithOptions

func NewUnicodeNormalizeCharFilterWithOptions(opts map[string]interface{}) (analysis.CharFilter, error)

Create new UnicodeNormalizeCharFilter with given options. Options example:

{
  "form": "NFKC"
}

Types

type CharFilter

type CharFilter string
const (
	AsciiFoldingCharFilter       CharFilter = "ascii_folding"
	HtmlCharFilter               CharFilter = "html"
	RegexpCharFilter             CharFilter = "regexp"
	UnicodeNormalizeCharFilter   CharFilter = "unicode_normalize"
	ZeroWidthNonJoinerCharFilter CharFilter = "zero_width_non_joiner"
)

type CharFilterSetting

type CharFilterSetting struct {
	Name    CharFilter             `json:"name"`
	Options map[string]interface{} `json:"options"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL