Documentation
¶
Overview ¶
Package index implements a search index.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
ID DocID // the document ID
Title string // the document title
URL string // the document URL
Data []byte // the text content
}
Document is a document to be indexed.
type DocumentResult ¶
DocumentResult is the result of a search for a single document.
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index is a search index.
type Result ¶
type Result struct {
DocumentResults []DocumentResult // document results
Total int // total number of document results
}
Result is the result of a search.
Click to show internal directories.
Click to hide internal directories.