From b961e74656b0db97d5b3c14295ca8c6ba16b4424 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 11 Apr 2017 14:51:22 -0700 Subject: change implementation of search to opt-in per type, less risky if sensative data is added --- system/db/content.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/db/content.go') diff --git a/system/db/content.go b/system/db/content.go index 49cba87..5db2896 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -124,7 +124,7 @@ func update(ns, id string, data url.Values, existingContent *[]byte) (int, error go func() { // update data in search index target := fmt.Sprintf("%s:%s", ns, id) - err = UpdateSearchIndex(target, string(j)) + err = UpdateSearchIndex(target, j) if err != nil { log.Println("[search] UpdateSearchIndex Error:", err) } @@ -252,7 +252,7 @@ func insert(ns string, data url.Values) (int, error) { go func() { // add data to seach index target := fmt.Sprintf("%s:%s", ns, cid) - err = UpdateSearchIndex(target, string(j)) + err = UpdateSearchIndex(target, j) if err != nil { log.Println("[search] UpdateSearchIndex Error:", err) } -- cgit v1.2.3