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 DocumentResult ¶
type DocumentResult struct {
ID DocID // the document ID
Data []byte // the document data
Score float64
}
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.