content_indexer v0.1.0 ContentIndexer.Services.Indexer

Summary

Indexer is a Genserver that holds the index state - basically a list of index structs that have the filename, tokens and weights
Each time an index struct is added to the server/index the weightings are re-calculated. Since they are stored in memory the index searching is fast

Link to this section Summary

Link to this section Functions

Link to this function add(file_name, tokens)
Link to this function corpus_of_tokens()
Link to this function retrieve_index()