MLPAutoCompleteTextField icon indicating copy to clipboard operation
MLPAutoCompleteTextField copied to clipboard

Is there a way of showing ONLY the results that have matched?

Open ebarronh opened this issue 9 years ago • 14 comments

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?

ebarronh avatar Feb 27 '15 11:02 ebarronh

+1

tommybananas avatar Mar 12 '15 21:03 tommybananas

+1

jweihs avatar Mar 24 '15 14:03 jweihs

+1

StoryStar avatar Jul 17 '15 18:07 StoryStar

+1

ghost avatar Jul 23 '15 18:07 ghost

+1

Have any one got the solution?

NirmitDagly avatar Nov 25 '15 10:11 NirmitDagly

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

EddyBorja avatar Nov 25 '15 16:11 EddyBorja

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.

NirmitDagly avatar Nov 25 '15 19:11 NirmitDagly

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

EddyBorja avatar Nov 25 '15 19:11 EddyBorja

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.

NirmitDagly avatar Nov 25 '15 20:11 NirmitDagly

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.

EddyBorja avatar Nov 26 '15 09:11 EddyBorja

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.

NirmitDagly avatar Nov 26 '15 10:11 NirmitDagly

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

EddyBorja avatar Nov 26 '15 19:11 EddyBorja

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

hardikamal avatar Feb 25 '16 11:02 hardikamal

@EddyBorja any solution plz..

hardikamal avatar Mar 15 '16 08:03 hardikamal