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.

General 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

Images not showing up in search


4 Posts   550 Views


14 July 2012 at 4:20pm Community Member, 8 Posts

Hi there,
I'm using the DisplayAnything module on SS 2.4.7. I can create galleries fine but when do a search using SearchForm no images show up in the search results. This is a site to showcase an artist's work, so all images in the assets file need to be searchable.

By default jpg's are saved to the File table with ClassName 'Image'. When uploading jpg's to a gallery using the DisplayAnything module they seem to be saved with ClassName 'DisplayAnythingFile'. If I manually change the Classname of these records to "File" then they show up in the search results.
Is this the default behaviour for SearchForm, to only include files from the asssets folder with ClassName specifically set to 'File'?
If so, is there a way I can override that to include 'Image', 'DisplayAnythingFile' etc classnames too?

Any help on this would be really appreciated; I've spent loads of time trying to figure it out.

Terry Apodaca

30 August 2012 at 6:26am Community Member, 109 Posts

DId you find a solution? I am in a similar situation...


31 August 2012 at 8:32am Community Member, 8 Posts

No solution I'm afraid. Fortunately for me the client decided to ditch the search entirely so I've been able to forget all about it. Perhaps there has been more flexibility built into the search functionality in SS3? If I get a chance I might have a look into this.
As an aside, have you considered using Google Custom Search instead to search images on your site? I've used it for site searches before and it's awesome. Might be worth a look.


24 January 2014 at 3:15am Community Member, 65 Posts

Did you get chance to look at this?

I've added search to my site and am not getting images back in the results.

Interesting thing is tho, if I perform a blank search, i.e. remove any search term, and get back all results images are included.