content_indexer v0.2.4 ContentIndexer.TfIdf.Corpus
Summary
Corpus is a Genserver that simply holds the total number of docs in the index
Link to this section Summary
Functions
Count of all documents in the index
Decrement the count of all documents in the index
Increment the count of all documents in the index
Initialises the Corpus doc count with zero
Resets the corpus document count
Link to this section Functions
Link to this function
count()
Count of all documents in the index
## Example
iex> ContentIndexer.TfIdf.Corpus.count
{:ok, 23}
Link to this function
decrement()
Decrement the count of all documents in the index
## Example
iex> ContentIndexer.TfIdf.Corpus.decrement
{:ok, :decremented}
Link to this function
increment()
Increment the count of all documents in the index
## Example
iex> ContentIndexer.TfIdf.Corpus.increment
{:ok, :incremented}
Link to this function
init_corpus()
Initialises the Corpus doc count with zero
Link to this function
reset()
Resets the corpus document count
## Example
iex> ContentIndexer.TfIdf.Corpus.reset
{:ok, 0}
Link to this function
start_link()