0

I've followed the excellent tuto about searchkick which I do recommend : https://github.com/ankane/searchkick However I haven't found something to improve my searching engine : For example if I have one user called :

"John"

If my search query is "Jo" that works, but if it is "hn" that does not.. Any ideas ? Thanks

5
  • 1
    This isn't the answer you are looking for, but I don't think "hn" should ever match to "John".
    – Josh
    Dec 15, 2013 at 23:16
  • well "John" contains "hn" though :) Dec 15, 2013 at 23:21
  • 1
    It just isn't expected behavior. If you start typing 'he' into google, you will get words that start with 'he'. The list doesn't include 'cheat' just because it contains 'he'. The idea of elastic search is to try to guess what your user wants and matching 'cheat' most likely isn't what the user is looking for.
    – Josh
    Dec 15, 2013 at 23:27
  • that's a valid point Josh, I wanted to make it look like a regex or something.. it doesn't really make sense though. Dec 16, 2013 at 13:27
  • In fact , if you wanna search for John.jpg , that may be usefull : this would be searching with a file extension filter. Jan 13, 2014 at 17:52

1 Answer 1

1

This is now possible using partial searches in searchkick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.