Condor-0.1: Information retrieval library

Portabilityportable
Stabilityalpha
MaintainerKrzysztof Langner <klangner@gmail.com>
Safe HaskellSafe-Inferred

Condor.Index

Description

This module contains functions which create, update and search index. Default implementation uses algorithms for english language (stemming, stop words etc.) But it should be possible to customize it for any language by modifying Index data type.

Synopsis

Documentation

data Index Source

Inverted index

Instances

addDocument :: DocName -> DocContent -> Index -> IndexSource

Add document to the index

emptyIndex :: IndexSource

Create empty index. This index will be configured for english language.

search :: Index -> DocContent -> [DocName]Source

Search term in the index

termCount :: Index -> IntSource

Get the number of terms in indexs