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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Killing for a search method on DataObjects


Go to End


5 Posts   2329 Views

Avatar
maurirp

Community Member, 2 Posts

27 May 2011 at 6:34pm

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

Avatar
UncleCheese

Forum Moderator, 4102 Posts

31 May 2011 at 3:26pm

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

Avatar
boombox

Community Member, 44 Posts

18 September 2011 at 9:24pm

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?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

19 September 2011 at 2:00pm

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

Avatar
stallain

Community Member, 68 Posts

1 April 2012 at 10:25pm

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 !