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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Images not showing up in search


Go to End


4 Posts   1592 Views

Avatar
jere

Community Member, 8 Posts

14 July 2012 at 4:20pm

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.

Avatar
Terry Apodaca

Community Member, 112 Posts

30 August 2012 at 6:26am

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

Avatar
jere

Community Member, 8 Posts

31 August 2012 at 8:32am

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.

Avatar
marc79

Community Member, 65 Posts

24 January 2014 at 3:15am

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.