aboutsummaryrefslogtreecommitdiffstats
path: root/repository/index_bleve.go
diff options
context:
space:
mode:
Diffstat (limited to 'repository/index_bleve.go')
-rw-r--r--repository/index_bleve.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/repository/index_bleve.go b/repository/index_bleve.go
index aae41d5f..40170919 100644
--- a/repository/index_bleve.go
+++ b/repository/index_bleve.go
@@ -129,6 +129,13 @@ func (b *bleveIndex) DocCount() (uint64, error) {
return b.index.DocCount()
}
+func (b *bleveIndex) Remove(id string) error {
+ b.mu.Lock()
+ defer b.mu.Unlock()
+
+ return b.index.Delete(id)
+}
+
func (b *bleveIndex) Clear() error {
b.mu.Lock()
defer b.mu.Unlock()