summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-06 12:38:44 -0700
committerSteve Manuel <nilslice@gmail.com>2017-04-06 12:38:44 -0700
commitf7a1c1afd6a0bf5708530c31da55035322f37ff4 (patch)
treef715a502aa8ee0ac84e4ab37a35889c50052d7a6 /system/db/content.go
parent582c47da170b79e6f4e64fe2ed85a3931e519c2b (diff)
indexing string data instead of json []byte
Diffstat (limited to 'system/db/content.go')
-rw-r--r--system/db/content.go4
1 files 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
}