search

package
v0.0.0-...-baa06f7 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNKNOWN int = iota
	S_SITE
	S_BLOG
	S_VIDEO
	S_GODOC

	L_EN
	L_FR
	L_ES

	E_INDEX string = "docs:search:index"
)

Variables

This section is empty.

Functions

func Fetch

func Fetch(q Query) (*bleve.SearchResult, error)

func Index

func Index(d Document) error

func Reset

func Reset() error

Types

type Document

type Document struct {
	URL      string `json:"url"`
	Body     string `json:"body"`
	Language int    `json:"language"`
	Source   int    `json:"source"`
}

type Indexer

type Indexer func() error

type Query

type Query struct {
	Language int
	Text     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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