summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/item/item.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/item/item.go b/system/item/item.go
index 24ac003..5babf35 100644
--- a/system/item/item.go
+++ b/system/item/item.go
@@ -212,7 +212,7 @@ 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 SearchMapping() *mapping.IndexMappingImpl {
+func (i Item) SearchMapping() *mapping.IndexMappingImpl {
mapping := bleve.NewIndexMapping()
mapping.StoreDynamic = false