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 as you type #162

Open
impactcolor opened this issue Jun 20, 2018 · 4 comments
Open

Search as you type #162

impactcolor opened this issue Jun 20, 2018 · 4 comments

Comments

@impactcolor
Copy link

I can't find any documentation to this so I apologize for newbie question.
I got this working but how can I get it working with "as you type" display search results? Currently I have to hit "search". I would like it to be that it displays results as I type.

@impactcolor
Copy link
Author

Is there any documentation on how to use Fuzzy or asyoutype? I guess this is what I'm looking for but documentation on google is scarce.

@rickbolton
Copy link

rickbolton commented Nov 9, 2018

Hey @impactcolor so the underlining library for this is https://github.com/teamtnt/tntsearch

Fuzzy/fuzziness is essentially allowing for typing mistakes. For instance if you have the text "Rick" and you search "Rikc" then it would return. I think as you type provides results from 1 letter searches. Looking at the test for this - https://github.com/teamtnt/tntsearch/blob/de6922a20bf2fe7c8b2fd97c18dfb11fadc9bd1d/tests/TNTSearchTest.php#L223 they search one letter and the result is returned.

I did have the same questions but managed to figure it out after some digging 👍

Also, super late response but thought I'd add this info if anyone else comes across this issue like I did :)

@pedzed
Copy link

pedzed commented Nov 22, 2019

@rickbolton Thanks. I'm still scratching my head a bit, but it makes sense I guess.

@pedzed
Copy link

pedzed commented Nov 22, 2019

It doesn't seem to work if boolean search is enabled. It's either-or.

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

3 participants