diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-04-11 20:03:36 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-04-11 20:03:36 -0700 |
commit | 10ede97c593fe229745ae37175ec465c55561810 (patch) | |
tree | 751afab58bc721bbbd6e5adfbb8ef3c3575b44bf /system/item | |
parent | 39ed91df81073489b485fae9a437fdb74954c40b (diff) | |
parent | 3c277a7c41aed0fe3e59fa1ccfd19b48d810b545 (diff) |
Merge branch 'master' of https://github.com/ponzu-cms/ponzu
Diffstat (limited to 'system/item')
-rw-r--r-- | system/item/item.go | 6 | ||||
-rw-r--r-- | system/item/types.go | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/system/item/item.go b/system/item/item.go index 4750ef5..8f392ca 100644 --- a/system/item/item.go +++ b/system/item/item.go @@ -219,6 +219,12 @@ func (i Item) SearchMapping() (*mapping.IndexMappingImpl, error) { return mapping, nil } +// IndexContent determines if a type should be indexed for searching +// partially implements db.Searchable +func (i Item) IndexContent() bool { + return false +} + // Slug returns a URL friendly string from the title of a post item func Slug(i Identifiable) (string, error) { // get the name of the post item 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{} |