Jump to content

Recommended Posts

Posted

I need to extend the search capability to image descriptions through the default search template in 2.5.3. 

$matches = $pages->find("title|body|sidebar|thumb_one|thumb_two|thumb_three|thumb_four|gallery_img%=$q, limit=50"); 

I've added additional field selectors, but with inconsistent results. Is there a better way to achieve this?

Posted

Try this:

$matches = $pages->find("title|body|sidebar|thumb_one.description|thumb_two.description|thumb_three.description|thumb_four.description|gallery_img.description%=$q, limit=50");
Posted

It's working fine here - are you saying it never returns any results from image descriptions, or are there inconsistent results returned?

Posted

Thanks Adrian,

The search returns inconsistent results, but it could be another issue. I appreciate the assist.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...