Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search count ignored & search question. #4

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

search count ignored & search question. #4

jagooding opened this issue Dec 19, 2012 · 0 comments

Comments

@jagooding
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant