Text indexing and search library