Documentation
¶
Overview ¶
Package fulltext provides a fulltext indexing service using trigram indexing and suffix arrays. It is designed for ASCII character sets but will attmept to transiliterare others.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Doc ¶
type Doc struct {
ID uint64 // external ID not managed by the index. It is the caller's responsibility to ensure uniqueness
Text string // the text to index
PriorText string // the text that was previously indexed. This is required for updates only - leave empty for new documents
}
Doc is a document to be indexed
type Service ¶
type Service struct {
sync.RWMutex // protects docs and idx
// contains filtered or unexported fields
}
Service implements pb.FulltextServiceServer
Click to show internal directories.
Click to hide internal directories.