idx

package
v0.0.0-...-8da89e4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BlugeAnalyzer *analysis.Analyzer
	BlugeConfig   bluge.Config
)
View Source
var (
	ErrNeedsUpdate = errors.New("file is already indexed but needs update")
)

Functions

func FileToDocument

func FileToDocument(fpath string, d fs.DirEntry) (*bluge.Document, error)

func GetBlugeDir

func GetBlugeDir() (string, error)

func Init

func Init(blugeDir string)

func Initial

func Initial() error

func Update

func Update() error

Types

type FileInfo

type FileInfo struct {
	ArchiveFilename []string
	AudioAlbum      string
	AudioArtist     string
	AudioTitle      string
	BareBasename    string
	Extname         string
	Dirname         string
	Filename        string
	MimeType        string
	ModTime         time.Time
	Size            int64
}

func DocumentMatchToFileInfo

func DocumentMatchToFileInfo(reader *bluge.Reader, match *search.DocumentMatch) (FileInfo, error)

Jump to

Keyboard shortcuts

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