From f7a1c1afd6a0bf5708530c31da55035322f37ff4 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Thu, 6 Apr 2017 12:38:44 -0700 Subject: indexing string data instead of json []byte --- system/db/content.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/db/content.go b/system/db/content.go index cc3382f..7667831 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -123,7 +123,7 @@ func update(ns, id string, data url.Values, existingContent *[]byte) (int, error // add data to search index target := fmt.Sprintf("%s:%s", ns, id) - err = Search[ns].Index(target, j) + err = Search[ns].Index(target, string(j)) if err != nil { return 0, err } @@ -249,7 +249,7 @@ func insert(ns string, data url.Values) (int, error) { // add data to search index target := fmt.Sprintf("%s:%s", ns, cid) - err = Search[ns].Index(target, j) + err = Search[ns].Index(target, string(j)) if err != nil { return 0, err } -- cgit v1.2.3