Documentation ¶
Index ¶
- type Index
- func (b *Index) DeleteBook(bk *note.Book) error
- func (b *Index) DeleteNote(n *note.Note) error
- func (b *Index) IndexNote(n *note.Note) error
- func (b *Index) IndexNotes(notes note.Notes) error
- func (b *Index) SearchNote(query string, limit, offset int) ([]int64, uint64, error)
- func (b *Index) SearchNotePhrase(query string, bk *note.Book, sort string, limit, offset int) ([]int64, uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index provides the interface to Bleve
func (*Index) DeleteBook ¶
DeleteBook deletes all notes in the index for the notebook
func (*Index) DeleteNote ¶
DeleteNote deletes note from index
func (*Index) IndexNotes ¶
IndexNotes creates or updates a list of notes in Bleve index
func (*Index) SearchNote ¶
SearchNote sends a search query to Bleve using QueryStringQuery
Click to show internal directories.
Click to hide internal directories.