Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

search count ignored & search question. #4

Open
jagooding opened this Issue Dec 19, 2012 · 0 comments

Comments

Projects
None yet
1 participant

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment