I recently needed to make a "search by name" feature for the new sorts of profile I've made. Basically I need to search across several fields for some sort of partial match.
Example:
search : "ben"
should find:
- records with
preferredName like "james ben", or "Benjamin"
- records with
legalName like "Big Ben"
- records with
altNames like ["bj", "benny"]
I've implemented something simple with flumeview-search which I'm pretty happy with but also interested in trying this out.
Obvious challenges for a module like this :
- case insensitivity
- finding partial matches (e.g. a regexp
/ben/)
This may be totally the wrong tool, but thought I'd put this test case at your doorstep in case it's of interest / use
I recently needed to make a "search by name" feature for the new sorts of profile I've made. Basically I need to search across several fields for some sort of partial match.
Example:
search : "ben"
should find:
preferredNamelike"james ben", or"Benjamin"legalNamelike"Big Ben"altNameslike["bj", "benny"]I've implemented something simple with
flumeview-searchwhich I'm pretty happy with but also interested in trying this out.Obvious challenges for a module like this :
/ben/)This may be totally the wrong tool, but thought I'd put this test case at your doorstep in case it's of interest / use