Jump to:

7937 Posts in 1537 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Killing for a search method on DataObjects

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1315 Views
  • maurirp
    Avatar
    Community Member
    2 Posts

    Killing for a search method on DataObjects Link to this post

    I've tried almost everything, nothing worked to me.

    I'm testing a site on xampp (apache 2.2.14, php 5.3.1 and mysql 5.1.41) and surprise!!! SilverStripe does not do searchs on DataObjects!!!!

    I've managed to create a document manager, multiple files on same DataObject (pdf, images, etc), I got all these working, but can't make any search on summary Text field.

    I need some clue on how to do it!! please!!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Killing for a search method on DataObjects Link to this post

    There are a number of ways to do it -- the Sphinx module, Lucene module. I prefer to just use Google search. You're not going to beat their search algorithms. You have to pay a nominal fee if you want to skin it, but it's worth it for the search power.

    Here's an example of a site that's built out with all dataobjects, and you can see we use Google for the global search function.

    http://www.yestermorrow.org

  • boombox
    Avatar
    Community Member
    44 Posts

    Re: Killing for a search method on DataObjects Link to this post

    Hi Uncle Cheese
    Nice work with the Custom Google Search
    I am testing integration of a custom Google search and can do so with results be shown on the same page as the KW input search field
    (by extending a page type)
    What method are you using to have the search input form available on all pages and output to a separate search results page?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Killing for a search method on DataObjects Link to this post

    It's a trick. Look closely.. the search form goes to a custom page type, with the query in the URL, and that page has an inline script that just runs the google search asynchronously.

    ---------------
    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

  • stallain
    Avatar
    Community Member
    61 Posts

    Re: Killing for a search method on DataObjects Link to this post

    An alternative to Google : a widget proposed by Exalead (http://www.exalead.com/search/widgets/search/generate/)
    You can test it on one of my websites if you like : http://anafin.fr/
    Just one drawback : you can't customize the results page. But it's free and it works very well !

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