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.


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

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

Searching additional fields


3 Posts   1267 Views


20 October 2007 at 7:16am 121 Posts

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...


23 October 2007 at 12:13am 121 Posts

Hmm warnocked again :(

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


27 October 2007 at 12:47am Community Member, 501 Posts

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