-
Notifications
You must be signed in to change notification settings - Fork 201
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 by keyword #5
Comments
I think we can implement it as chainable method for each content type or for overall, e.g: // specific content type
Indonesia::search('sra')->getProvince();
Indonesia::search('karang')->paginateProvince();
Indonesia::search('solo')->getCities();
// all content type
Indonesia::search('kotaba')->get(); |
Do you mean the search from Laravel Scout in Laravel 5.3? |
How it work under the hood was up to you, just make the API consistent with On 26 Aug 2016 16:00, "Adhatama" notifications@github.com wrote:
|
Simple search using LIKE might be enough. On 26 Aug 2016 16:25, "bayu hendra" uyab.exe@gmail.com wrote:
|
@uyab What do you think about this results for search all? Which is better?
or
|
The second is better |
Use case
Autocomplete via ajax. Usually when we built some form input that ask user to select specific village, we force user to select province, and then city, and then district, and then village. I want to get rid all of those step, and just let user to type their village directly into textbox, and then system will provide suggestions via autocomplete.
The text was updated successfully, but these errors were encountered: