diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-04-11 14:51:22 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-04-11 14:51:22 -0700 |
commit | b961e74656b0db97d5b3c14295ca8c6ba16b4424 (patch) | |
tree | 3809b37535114c337452a3ab7320ca51ede02d06 /system/item | |
parent | 3f1d6b5df128973eb7c4c8a92c2b34fde2fb1ba0 (diff) |
change implementation of search to opt-in per type, less risky if sensative data is added
Diffstat (limited to 'system/item')
-rw-r--r-- | system/item/item.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/system/item/item.go b/system/item/item.go index 4750ef5..8f392ca 100644 --- a/system/item/item.go +++ b/system/item/item.go @@ -219,6 +219,12 @@ func (i Item) SearchMapping() (*mapping.IndexMappingImpl, error) { return mapping, nil } +// IndexContent determines if a type should be indexed for searching +// partially implements db.Searchable +func (i Item) IndexContent() bool { + return false +} + // Slug returns a URL friendly string from the title of a post item func Slug(i Identifiable) (string, error) { // get the name of the post item |