indexing

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheEnjinFeature

type CacheEnjinFeature interface {
	NewCache(bucket string) (err error)
	Mounted(bucket, path string) (ok bool)
	Mount(bucket, mount, path string, mfs fs.FileSystem)
	Rebuild(bucket string) (ok bool)
	Lookup(bucket string, tag language.Tag, url string) (mount, path string, p *page.Page, err error)
	LookupTranslations(bucket, url string) (pgs []*page.Page)
	LookupRedirect(bucket, url string) (p *page.Page, ok bool)
	LookupPrefix(bucket, prefix string) (found []*page.Page)
	TotalCached(bucket string) (count uint64)
}

type KeywordProvider

type KeywordProvider interface {
	KnownKeywords() (keywords []string)
	KeywordStubs(keyword string) (stubs fs.PageStubs)
}

type PageContextProvider

type PageContextProvider interface {
	YieldPageContextValues(key string) (values chan interface{})
	YieldPageContextValueStubs(key string) (pairs chan *fs.ValueStubPair)
}

type PageIndexFeature

type PageIndexFeature interface {
	AddToIndex(stub *fs.PageStub, p *page.Page) (err error)
	RemoveFromIndex(tag language.Tag, file, shasum string)
}

type QueryIndexFeature

type QueryIndexFeature interface {
	PerformQuery(input string) (stubs []*fs.PageStub, err error)
	PerformSelect(input string) (selected map[string]interface{}, err error)
}

type SearchDocumentMapperFeature

type SearchDocumentMapperFeature interface {
	SearchDocumentMapping(tag language.Tag) (doctype string, dm *mapping.DocumentMapping)
	AddSearchDocumentMapping(tag language.Tag, indexMapping *mapping.IndexMappingImpl)
}

type SearchEnjinFeature

type SearchEnjinFeature interface {
	PrepareSearch(tag language.Tag, input string) (query string)
	PerformSearch(tag language.Tag, input string, size, pg int) (results *bleve.SearchResult, err error)
	AddToSearchIndex(stub *fs.PageStub, p *page.Page) (err error)
	RemoveFromSearchIndex(tag language.Tag, file, shasum string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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