Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Searching additional fields

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

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

Page: 1
Go to End
Author Topic: 1246 Views
  • jam13
    Avatar
    121 Posts

    Searching additional fields Link to this post

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

  • jam13
    Avatar
    121 Posts

    Re: Searching additional fields Link to this post

    Hmm warnocked again

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

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Searching additional fields Link to this post

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

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