jds43 Posted November 20, 2015 Share Posted November 20, 2015 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? Link to comment Share on other sites More sharing options...
adrian Posted November 21, 2015 Share Posted November 21, 2015 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"); Link to comment Share on other sites More sharing options...
jds43 Posted November 23, 2015 Author Share Posted November 23, 2015 No luck there. Any other ideas? Link to comment Share on other sites More sharing options...
adrian Posted November 23, 2015 Share Posted November 23, 2015 It's working fine here - are you saying it never returns any results from image descriptions, or are there inconsistent results returned? Link to comment Share on other sites More sharing options...
jds43 Posted November 24, 2015 Author Share Posted November 24, 2015 Thanks Adrian, The search returns inconsistent results, but it could be another issue. I appreciate the assist. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now