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

Count of all documents in the index

## Example

iex> ContentIndexer.TfIdf.Corpus.count
{:ok, 23}

Decrement the count of all documents in the index

## Example

iex> ContentIndexer.TfIdf.Corpus.decrement
{:ok, :decremented}

Increment the count of all documents in the index

## Example

iex> ContentIndexer.TfIdf.Corpus.increment
{:ok, :incremented}

Initialises the Corpus doc count with zero

Resets the corpus document count

## Example

iex> ContentIndexer.TfIdf.Corpus.reset
{:ok, 0}