summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-11 18:58:07 -0700
committerSteve Manuel <nilslice@gmail.com>2017-04-11 18:58:07 -0700
commitfa7803984062f00feec897205a0a15cc79b696c6 (patch)
tree2fa4671dc9c6a82e411eae25476d943ac413b463
parent715b2e5b32a4603e1eb580133b9ae1a5837760fc (diff)
remoeve ErrNoSearchIndex since the implementation is disable by default
-rw-r--r--system/db/search.go3
-rw-r--r--system/item/types.go3
2 files changed, 0 insertions, 6 deletions
diff --git a/system/db/search.go b/system/db/search.go
index 84a3828..b3d5fa1 100644
--- a/system/db/search.go
+++ b/system/db/search.go
@@ -53,9 +53,6 @@ func MapSearchIndex(typeName string) error {
}
mapping, err := s.SearchMapping()
- if err == item.ErrNoSearchMapping {
- return nil
- }
if err != nil {
return err
}
diff --git a/system/item/types.go b/system/item/types.go
index dbf13af..bcae58a 100644
--- a/system/item/types.go
+++ b/system/item/types.go
@@ -26,9 +26,6 @@ var (
// if requested by a valid admin or user
ErrAllowHiddenItem = errors.New(`Allow hidden item`)
- // ErrNoSearchMapping can be used to tell the system not to create an index mapping
- ErrNoSearchMapping = errors.New(`No search mapping for item`)
-
// Types is a map used to reference a type name to its actual Editable type
// mainly for lookups in /admin route based utilities
Types map[string]func() interface{}