DeeHashIndex

DeeHashIndex — A DeeHashIndex implementation doing lookups in a hash map

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── DeeIndex
        ╰── DeeHashIndex

Includes

#include <dee.h>

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().

Functions

dee_hash_index_new ()

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

Create a new hash index.

Parameters

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().

Types and Values

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;
};