MLPAutoCompleteTextField
MLPAutoCompleteTextField copied to clipboard
Is there a way of showing ONLY the results that have matched?
I already have a very long list of numbers and I'd like to see if there is anyway I can only show the results that have matched (at least by 1 letter) what the user has entered? Any suggestions?
+1
+1
+1
+1
+1
Have any one got the solution?
Can you give an example of a user input and an expected list of results?
— Sent from Mailbox
On Wed, Nov 25, 2015 at 5:22 AM, Nirmit Dagly [email protected] wrote:
+1
Reply to this email directly or view it on GitHub: https://github.com/EddyBorja/MLPAutoCompleteTextField/issues/68#issuecomment-159563219
Yes. For example, Suppose I am searching a word "Love" in an array, and If I enter the text "Lo" then it should show results from starting of this words and not containing this words.
So basically looking for an exact match and not considering typos?
— Sent from Mailbox
On Wed, Nov 25, 2015 at 2:40 PM, Nirmit Dagly [email protected] wrote:
Yes.
For example, Suppose I am searching a word "Love" in an array, and If I enter the text "Lo" then it should show results from starting of this words and not containing this words.
Reply to this email directly or view it on GitHub: https://github.com/EddyBorja/MLPAutoCompleteTextField/issues/68#issuecomment-159710629
Yes.. Exactly. Looking for an exact match rather then finding out typos from an array.
Sent from my iPhone
On Nov 26, 2015, at 01:26, Eddy Borja [email protected] wrote:
So basically looking for an exact match and not considering typos?
— Sent from Mailbox
On Wed, Nov 25, 2015 at 2:40 PM, Nirmit Dagly [email protected] wrote:
Yes.
For example, Suppose I am searching a word "Love" in an array, and If I enter the text "Lo" then it should show results from starting of this words and not containing this words.
Reply to this email directly or view it on GitHub: https://github.com/EddyBorja/MLPAutoCompleteTextField/issues/68#issuecomment-159710629 — Reply to this email directly or view it on GitHub.
I've pushed an update that adds a Bool called "requireAutoCompleteSuggestionsToMatchInputExactly". Set that to true and it should do the behavior you're looking for. An exact match is the same as having an edit distance of zero.
Thanks for your commit Eddy. Now, I am getting exact words that are matches with the latter that I want. But It is not finding proper words from my data source. I have an array of total 16042 objects and I want to find out the search words. But somehow it is just searching words till the latter starts from "B' and then after other words are being ignored. I have used NSPredicate and also used string by based on its range to narrow my search for the words, but it is also not working. I can provide data source also if you need it. Please help me out to solve this.
Once again thanks for your help.
Sure let me get a data source so I can see what's going on.
— Sent from Mailbox
On Thu, Nov 26, 2015 at 5:52 AM, Nirmit Dagly [email protected] wrote:
Thanks for your commit Eddy. Now, I am getting exact words that are matches with the latter that I want. But It is not finding proper words from my data source. I have an array of total 16042 objects and I want to find out the search words. But somehow it is just searching words till the latter starts from "B' and then after other words are being ignored. I have used NSPredicate and also used string by based on its range to narrow my search for the words, but it is also not working. I can provide data source also if you need it. Please help me out to solve this.
Once again thanks for your help.
Reply to this email directly or view it on GitHub: https://github.com/EddyBorja/MLPAutoCompleteTextField/issues/68#issuecomment-159877725
hi @EddyBorja, Can u plz tell how do i make it match case-insensitive words... suppose my word is "Apple" and if i type "a",the Apple should appear...Thanks
@EddyBorja any solution plz..