summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/blevesearch/bleve/mapping/mapping.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-09-16 13:16:21 -0700
committerLauris BH <lauris@nix.lv>2017-09-16 23:16:21 +0300
commitb0f7457d9ef6e16d4a3197f7544035d5d387e201 (patch)
treedbe6a9b3b74f9a4a6eaa0c0cfe59fa08509edccc /vendor/github.com/blevesearch/bleve/mapping/mapping.go
parent52e11b24bf5e395d83ea58c1b0fd6922efe16add (diff)
downloadgitea-b0f7457d9ef6e16d4a3197f7544035d5d387e201.tar.gz
gitea-b0f7457d9ef6e16d4a3197f7544035d5d387e201.zip
Improve issue search (#2387)
* Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
Diffstat (limited to 'vendor/github.com/blevesearch/bleve/mapping/mapping.go')
-rw-r--r--vendor/github.com/blevesearch/bleve/mapping/mapping.go13
1 files changed, 11 insertions, 2 deletions
diff --git a/vendor/github.com/blevesearch/bleve/mapping/mapping.go b/vendor/github.com/blevesearch/bleve/mapping/mapping.go
index 610021101f..4a47281126 100644
--- a/vendor/github.com/blevesearch/bleve/mapping/mapping.go
+++ b/vendor/github.com/blevesearch/bleve/mapping/mapping.go
@@ -22,12 +22,21 @@ import (
"github.com/blevesearch/bleve/document"
)
-// A Classifier is an interface describing any object
-// which knows how to identify its own type.
+// A Classifier is an interface describing any object which knows how to
+// identify its own type. Alternatively, if a struct already has a Type
+// field or method in conflict, one can use BleveType instead.
type Classifier interface {
Type() string
}
+// A bleveClassifier is an interface describing any object which knows how
+// to identify its own type. This is introduced as an alternative to the
+// Classifier interface which often has naming conflicts with existing
+// structures.
+type bleveClassifier interface {
+ BleveType() string
+}
+
var logger = log.New(ioutil.Discard, "bleve mapping ", log.LstdFlags)
// SetLog sets the logger used for logging