Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Custom frontend search (DataObject) in a single field


4 Posts   1176 Views


22 July 2011 at 11:07pm Community Member, 14 Posts


I've seen the question beeing asked before but no answer. So I'll give it a new try after all these updates of SilverStripe!
Is it possible to have a frontend search field that searches multiple attributes? For example the title variable of a blog post and the tag names of the posts tags aswell?

Another question that also refers to search. Is the results sorted by relevance or is just the newest entry first?

Thanks in advance!


22 July 2011 at 11:49pm Forum Moderator, 1796 Posts


These posts might help you out a little...


23 July 2011 at 2:47am (Last edited: 23 July 2011 2:57am), Community Member, 14 Posts

Indeed some interesting reading. Makes me consider a search engine module though.. What would people recommend between the sphinx solr or lucene modules?

Edit: The site could (with some tweaking) be compared with YouTube, with less content of course. So the question is "If you had a youtube site, how would you implement the search?"..

Anyone feel free to answer with how and why :)


23 July 2011 at 3:01am Forum Moderator, 1796 Posts

I keep meaning to get one of those working - but as I understand it you need something (other than extra php code) installed and configured on the server... I'm a big believer in keeping it simple and not introducing things I don't fully understand/control. for obvious reasons I like my method - it's all I've ever need for all of my sites - but then serach is normally done in a custom way and I've never need the extra functionality - when people start asking for "text search to be much better" and that - I'll have to look into it...