You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering about a couple things, the first question I have is, when you do a .search, for say, "foo bar" why does it return all strings that have the words, "foo" and "bar" in them, and not just strings that start with "foo bar" ?
Also the other thing is, I've noticed if you supply a count to .search it is ignored, all the results possible will be returned. count works for word completion and phrase completion.
so for example, say we add the following:
"foo bar baz"
"foo bar bat"
"quack bar kill"
"awooga peaches foo"
"other super nadda"
and we .search() "foo bar" it will return:
"foo bar baz"
"foo bar bat"
"quack bar kill"
"awooga peaches foo"
When I only expected it to return:
"foo bar baz"
"foo bar bat"
Is this a wrong expectation, a bug, or am I using the library wrong?
Thanks,
John
The text was updated successfully, but these errors were encountered:
Hi Jed,
I was wondering about a couple things, the first question I have is, when you do a .search, for say, "foo bar" why does it return all strings that have the words, "foo" and "bar" in them, and not just strings that start with "foo bar" ?
Also the other thing is, I've noticed if you supply a count to .search it is ignored, all the results possible will be returned. count works for word completion and phrase completion.
so for example, say we add the following:
"foo bar baz"
"foo bar bat"
"quack bar kill"
"awooga peaches foo"
"other super nadda"
and we .search() "foo bar" it will return:
"foo bar baz"
"foo bar bat"
"quack bar kill"
"awooga peaches foo"
When I only expected it to return:
"foo bar baz"
"foo bar bat"
Is this a wrong expectation, a bug, or am I using the library wrong?
Thanks,
John
The text was updated successfully, but these errors were encountered: