Library
Module
Module type
Parameter
Class
Class type
A functor for building a Tfidf search index over one type of document.
module Doc : sig ... end
type doc = Doc.t
The type of documents we will search over
type uid = Uid.t
The type of unique identifiers we will use to identify distinct documents
index t doc uid
indexes a given document doc
in t
with a unique identifier uid
.
Same as add_index
but allows you to add multiple indexes at a time before re-indexing occurs.
val empty :
?santiser:(string -> string) ->
?strategy:(string -> string list) ->
?tokeniser:(string -> string list) ->
unit ->
t
Create a new empty search index.
val pp : Format.formatter -> t -> unit
Dumps the index, mainly for debugging or testing.