Documentation
¶
Index ¶
- func AnyStubsInStubs(src, tgt Stubs) (found bool)
- func RegisterSearchPageType(pgtype string)
- func SearchDocument(p *page.Page) (doc search.Document, err error)
- func SearchMapping(p *page.Page) (doctype string, dm *mapping.DocumentMapping, err error)
- type CacheEnjinFeature
- type KeywordProvider
- type PageContextProvider
- type PageIndexFeature
- type QueryEnjinFeature
- type SearchDocumentMapperFeature
- type SearchEnjinFeature
- type Stub
- type Stubs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyStubsInStubs ¶
func RegisterSearchPageType ¶
func RegisterSearchPageType(pgtype string)
func SearchMapping ¶
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 PageContextProvider ¶
type PageIndexFeature ¶
type QueryEnjinFeature ¶
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 *Stub, p *page.Page) (err error)
RemoveFromSearchIndex(tag language.Tag, file, shasum string)
}
type Stub ¶
type Stub struct {
Bfs beFs.FileSystem
Point string
Shasum string
Source string
Language language.Tag
Fallback language.Tag
EnjinCtx context.Context
}
Click to show internal directories.
Click to hide internal directories.