Search, space and multiple fields : The story of a search engine
Say my model has :
- a first name : Alberto
- a last name : Guterès
He is from Mexico, he is a little overweighted, wears a sombrero and have sweating patches at his armpits.
Now say I have the following
<sib-display search-fields="name" set-name="first_name, last_name" ></sib-display>
If I type :
- Alterto : it works !
- Guteres : it works !
- Alterto Guteres : it doesn't work..
The space is not handled between fields. I believe it should behave this way :
Pseudo code :
- Hello, I am the search engine
- Oh, here is the query
- I split you up by
var queryStrings = ["Alberto", "Guteres"]
first_name +" "+ last_namecontains all the strings within
queryStrings: it is a match !
Not having this feature makes Alterto really sad :