-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Is there a score per result? #55
Comments
there are some fields in the database that show this will be added. see answer here: #56 for now you could use the php similar_text function to add a weighting to the results array.. something like this:
After this you can sort the array using usort |
Sweet. Thanks @fishgrind. Legendary work! |
@t2thec no worries. Just remember similar_text is case sensitive hence the strtolower() probably better and faster is using levenshtein() though see http://www.w3schools.com/php/func_string_levenshtein.asp |
…ssibile to reorder result after multiple searches (see: teamtnt#55)
I LOVE this package. Thanks very much for putting it together.
I am using the Laravel driver and search multiple models in turn. I would like to then rank the results from all models by a score.
I presume from my digging around that this currently isn't possible? Or am I wrong?
One again, thanks for this. So simple and affective.
The text was updated successfully, but these errors were encountered: