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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Searching additional fields

Go to End

3 Posts   1464 Views


121 Posts

20 October 2007 at 7:16am

I've got a simple site search set up as per the tutorial, but I noticed that it only searches the SiteTree and File tables.

I have a page type called RecipePage which has two Content areas. Is there a clean way of extending SearchForm to search these additional fields?

I'm currently overriding the searchEngine function, doing an additional search on the RecipePage table (including the extra field) and adding it to the UNION statement. It's pretty ugly and doesn't work well at the moment because I get duplicates and half of them have no content.

If someone has a better solution I'd be happy to have a go at coding it...


121 Posts

23 October 2007 at 12:13am

Hmm warnocked again :(

Has anyone had a go at integrating an indexing search engine like mngosearch into SilverStripe?


Community Member, 501 Posts

27 October 2007 at 12:47am

I am very interested to know if and how you solved this cause I am having the same issue.