vsm :: StringIndex :: match_string
query
string against all indexed documentsSee match_vector
.
# Match the `query` string against all indexed documents
#
# See `match_vector`.
fun match_string(query: String): Array[IndexMatch[DOC]] do
var vector = parse_string(query)
var doc = new Document("", "", vector)
return match_vector(doc.terms_frequency)
end
lib/vsm/vsm.nit:231,2--238,4