rename the configurable token map from standard to custom
this makes it consistent with the "custom" analyzer which operates similarly also, added it to the config.go so its registerd and available for use
This commit is contained in:
parent
22911888c4
commit
933d99c576
|
@ -16,7 +16,7 @@ import (
|
|||
"github.com/blevesearch/bleve/registry"
|
||||
)
|
||||
|
||||
const Name = "standard"
|
||||
const Name = "custom"
|
||||
|
||||
func GenericTokenMapConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenMap, error) {
|
||||
rv := analysis.NewTokenMap()
|
|
@ -14,6 +14,9 @@ import (
|
|||
"github.com/blevesearch/bleve/registry"
|
||||
"time"
|
||||
|
||||
// token maps
|
||||
_ "github.com/blevesearch/bleve/analysis/token_map"
|
||||
|
||||
// fragment formatters
|
||||
_ "github.com/blevesearch/bleve/search/highlight/fragment_formatters/ansi"
|
||||
_ "github.com/blevesearch/bleve/search/highlight/fragment_formatters/html"
|
||||
|
|
Loading…
Reference in New Issue