Documentation
¶
Index ¶
Constants ¶
View Source
const ChunckLen = 10
The number of element in a chunck (aka the result page)
Variables ¶
View Source
var ErrPageTooLong = errors.New("Page argument too long")
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// Get a page from the crawler database.
CrawlerDB *crawldatabase.Database[crawler.Page]
// Get for a word key, all pages with the word and occurence coeficient.
// The sub slice are sorted by key.
ReverseIndex map[keys.Key][]index.KeyFloat32
// Get a global score, like a page rank.
GlobalScore map[keys.Key]float32
}
type PageResult ¶
Click to show internal directories.
Click to hide internal directories.