DeeHashIndex

DeeHashIndex — A DeeHashIndex implementation doing lookups in a hash map

Synopsis

#include <dee.h>

struct              DeeHashIndex;
struct              DeeHashIndexClass;
DeeHashIndex *      dee_hash_index_new                  (DeeModel *model,
                                                         DeeAnalyzer *analyzer,
                                                         DeeModelReader *reader);

Object Hierarchy

  GObject
   +----DeeIndex
         +----DeeHashIndex

Description

DeeHashIndex is an implementation of DeeHashIndex which is backed by a hashmap. This means that it only supports the DEE_TERM_MATCH_EXACT flag in dee_hash_index_lookup().

Details

struct DeeHashIndex

struct DeeHashIndex;

All fields in the DeeHashIndex structure are private and should never be accessed directly


struct DeeHashIndexClass

struct DeeHashIndexClass {
  DeeIndexClass     parent_class;
};


dee_hash_index_new ()

DeeHashIndex *      dee_hash_index_new                  (DeeModel *model,
                                                         DeeAnalyzer *analyzer,
                                                         DeeModelReader *reader);

Create a new hash index.

model :

The model to index

analyzer :

The DeeAnalyzer used to tokenize and filter the terms extracted by reader

reader :

The DeeModelReader used to extract terms from the model

Returns :

A newly allocated hash index. Free with g_object_unref().