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

how to find "NO MATCHES" for searched string? #3

Closed
Thavasidurai opened this issue Oct 19, 2014 · 4 comments
Closed

how to find "NO MATCHES" for searched string? #3

Thavasidurai opened this issue Oct 19, 2014 · 4 comments

Comments

@Thavasidurai
Copy link

Hello,

Let say i have content like this @[@"test",@"sample",@"test sample",@"testing"]; and i am searching for word "wz". here i don't have any matches/related word for "wz" in my content array so i suppose to show "No matches found" message.

Can you please guide me how to find that searched string does not have any matches? because your code is always returning sorted array even there is no match.

Thanks in advance!

@Thavasidurai
Copy link
Author

Hi,
Is it possible to implement above feature. It would be really helpful?

Thanks in anticipation!

@leverdeterre
Copy link
Owner

Hi,
The problem of this algo is the fact of finding an interesting score by searching.
If you look the score associated to your PermissiveObject.score you have to find a minimum threshold to consider that you find a good result.

@Thavasidurai
Copy link
Author

Thank you so much!

@leverdeterre
Copy link
Owner

👍
Don't hesitate to make pull request with new parameter on the API.
For example, a good new method would be on PermissiveResearchDatabase a new selector searchString:withOperation:withScoreThreshold: to filter results in the search operation.

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

2 participants