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.
Afficher le fichier Open project: stewhir/recent-robust-qac

Méthodes publiques

Méthode 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 méthode

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

GetIndexEntriesForQueryTerm() public méthode

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

GetTermFrequencyInIndex() public méthode

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
Résultat double

TermIndex() public méthode

public TermIndex ( ) : System
Résultat System