Jump to:

23472 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Search 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

Page: 1
Go to End
Author Topic: 247 Views
  • Lime Blast
    Avatar
    Community Member
    22 Posts

    Search questions Link to this post

    I'm working on a project for a college using Silverstripe as the base. Part of the site will be a series of pages which list full time courses, to which the college want to add a search facility.

    Here is where it (possibly) becomes complicated: they're not too fussed about the ability to search the rest of the site, and have some specific requirements with specific search-terms (say 'football') showing specific results (say the 'NVQ Sports' page).

    Because of this I have two questions:

    • Is it possible for the search functionality to be limited to a single set of pages and/or page types?
    • If I was to add an extra field (called, say, 'keywords') to each full time course page, would silverstripe's search facility use it results?

    Thank you

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: Search questions Link to this post

    Hi Lime Blast,
    I'm not too sure about the default SS search system. But it should be easier enough to Build your own search form that search on some specific fields. You can then write a custom query in the form controller performs a fuzzy search over your custom fields.

    http://dev.mysql.com/doc/refman/5.5/en/fulltext-natural-language.html

    247 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.