vsm :: StringIndex :: index_string
title
, uri
and string string
.Return the Document created.
See index_document
.
# Index a new Document from `title`, `uri` and string `string`.
#
# Return the Document created.
#
# See `index_document`.
fun index_string(title, uri, string: String, auto_update: nullable Bool): DOC do
var vector = parse_string(string)
var doc = new Document(title, uri, vector)
index_document(doc, auto_update)
return doc
end
lib/vsm/vsm.nit:219,2--229,4