fts

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	LibId    string
	Title    string
	Authors  string
	Series   string
	SeriesNo int
	PubDate  time.Time
}

func (*Book) BleveType

func (b *Book) BleveType() string

type Indexer

type Indexer interface {
	Open(path string) (*Indexer, error)
	Create(path, language string) (*Indexer, error)
	Close() error
	AddBooks(books []*Book, partial bool) error
	SearchByField(field, s string, page, pageSize int) (*SearchResult, error)
	GetMostRecentBooks(count int) ([]string, error)
}

type SearchResult

type SearchResult struct {
	Total uint64
	Hits  []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL