summaryrefslogtreecommitdiff
path: root/system/item/item.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/item/item.go')
-rw-r--r--system/item/item.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/item/item.go b/system/item/item.go
index 5babf35..4750ef5 100644
--- a/system/item/item.go
+++ b/system/item/item.go
@@ -212,11 +212,11 @@ func (i Item) AfterReject(res http.ResponseWriter, req *http.Request) error {
// SearchMapping returns a default implementation of a Bleve IndexMappingImpl
// partially implements db.Searchable
-func (i Item) SearchMapping() *mapping.IndexMappingImpl {
+func (i Item) SearchMapping() (*mapping.IndexMappingImpl, error) {
mapping := bleve.NewIndexMapping()
mapping.StoreDynamic = false
- return mapping
+ return mapping, nil
}
// Slug returns a URL friendly string from the title of a post item