0
0
Fork 0

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:
Marty Schoch 2014-09-07 14:09:38 -04:00
parent 22911888c4
commit 933d99c576
2 changed files with 4 additions and 1 deletions

View File

@ -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()

View File

@ -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"