Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ func (s *Sear) Batch(batch *index.Batch) error {
return fmt.Errorf("batch indexing is not supported by this index")
}

func (s *Sear) GetInternal(key []byte) ([]byte, error) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

return s.internal[string(key)], nil
}

// SetInternal sets a value in the index internal storage.
func (s *Sear) SetInternal(key, val []byte) error {
s.internal[string(key)] = val
Expand Down
Loading