You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Giving that, how could we make OctoberCMS backend search widgets (relation widget, recordfinder widget, list widget, etc) perform a search returning the records containing the complete search term?
E.g.: if the search term is Jon Smith currently the builder retrieves all records containing Jon or Smith. So the search would return:
Jon Doe
John Smith
Jon Smith
Mary Smith
...
How could one make a search returning only records containing Jon Smith?
How could one set a search to return only records starting withJon Smith?
Am I missing some settings that would make this possible?
Update 2016-04-18:
My previous example was not clear enough. If you have the following rows in your database:
John Smith
Jon Doe
Jon Paul Smith
Jon Smith
Mary Jon Smith
Mary Smith
...
and your search term is Jon Smith then the search would return:
Jon Paul Smith
Jon Smith
Mary Jon Smith
Whereas what I would need is the search to return only two records:
Jon Smith
Mary Jon Smith
The text was updated successfully, but these errors were encountered:
Hi, after struggling trying to search for the exact search term I noticed that src/Database/Builder.php line 29 breaks the search term into words.
Giving that, how could we make OctoberCMS backend search widgets (
relation
widget,recordfinder
widget,list
widget, etc) perform a search returning the records containing the complete search term?E.g.: if the search term is
Jon Smith
currently the builder retrieves all records containingJon
orSmith
. So the search would return:Jon Smith
?Jon Smith
?Am I missing some settings that would make this possible?
Update 2016-04-18:
My previous example was not clear enough. If you have the following rows in your database:
and your search term is
Jon Smith
then the search would return:Whereas what I would need is the search to return only two records:
The text was updated successfully, but these errors were encountered: