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

Search fields and DataObjects


Reply


3 Posts   418 Views

Avatar
Rodskagg

Community Member, 8 Posts

25 February 2013 at 11:06pm

The default search implementation doesn't seem to search custom fields and DataObjects associated with a page? Is it possible to change this functionality? I want the user to be able to search ALL content on all pages.

Avatar
Chris Dangerfield

Community Member, 8 Posts

18 March 2013 at 12:19pm

Hi Rodskagg,

Yes, unfortunately the default search doesn't extend to DataObjects. The main two choices in SS3 are Solr and Sphinx. I haven't used Sphinx but Solr is excellent - you can get the latest version here:
https://github.com/nyeholt/silverstripe-solr

It takes a bit to set up, but well worth it.

Cheers,
Chris

Avatar
Tony Air

Community Member, 13 Posts

26 March 2013 at 4:33am

Here's custom search snippets for SS2 and SS3 http://www.silverstripe.org/all-other-modules/show/6641?start=40#post319776#post319776