C# Class QACExperimenter.Data.IndexCore.TermIndex

Maintains an index of BaseIndexEntry objects, indexed by term. This is effectively an inverted index to the queries in the PrefixIndex. This class is NOT thread-safe.
Show file Open project: stewhir/recent-robust-qac

Public Methods

Method Description
AddBaseIndexEntry ( BaseIndexEntry indexEntry ) : void

Index the BaseIndexEntry in the inverted index, by query term

GetIndexEntriesForQueryTerm ( string term ) : List

Get the BaseIndexEntries containing the provided query term. Returns null if there are no index entries.

GetTermFrequencyInIndex ( string term ) : double

Get the frequency of the term in the index. This is how many unique queries contain the term.

TermIndex ( ) : System

Method Details

AddBaseIndexEntry() public method

Index the BaseIndexEntry in the inverted index, by query term
public AddBaseIndexEntry ( BaseIndexEntry indexEntry ) : void
indexEntry BaseIndexEntry
return void

GetIndexEntriesForQueryTerm() public method

Get the BaseIndexEntries containing the provided query term. Returns null if there are no index entries.
public GetIndexEntriesForQueryTerm ( string term ) : List
term string
return List

GetTermFrequencyInIndex() public method

Get the frequency of the term in the index. This is how many unique queries contain the term.
public GetTermFrequencyInIndex ( string term ) : double
term string
return double

TermIndex() public method

public TermIndex ( ) : System
return System