Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDocuments ¶
DeleteDocuments remove documents in database.
func InsertDocuments ¶
InsertDocuments save the documents into the database.
Types ¶
type TokenLocation ¶
func SearchTokens ¶
func SearchTokens(db *sqlx.DB, keys ...string) ([]TokenLocation, error)
SearchTokens look for document ids which contains the specified tokens, then count how many tokens occured in each document.
Click to show internal directories.
Click to hide internal directories.