Multi Search - merge two fields into one field for search results

4 posts by 2 authors in: Forums > CMS Builder
Last Post: January 14, 2013   (RSS)

By Mikey - January 14, 2013 - edited: January 14, 2013

Below is my exist code I'm working with:

$searchTables['gallery'] = array(
        'viewerUrl'       => 'gallery_showcase.php',
        'titleField'      => 'title',
        'summaryField'    => 'content',
        'field1'    => 'summary',
        'field2'    => 'prefix_number',
        'field3'    => 'num',
       'searchFields'    =>  array('title','content','summary','prefix_number','num'),
      );

What I need to accomplish:

I need to merge prefix_number and num into a new field prefix_number_num, so as to combine these two fields into one field, so when a user searchers for the prefix and num combined the Multi Search returns the results of the two fields combined.

$searchTables['gallery'] = array(
        'viewerUrl'       => 'gallery_showcase.php',
        'titleField'      => 'title',
        'summaryField'    => 'content',
        'field1'    => 'summary',
        'field2'    => 'prefix_number_num',
       'searchFields'    =>  array('title','content','summary','prefix_number_num'),
      );

Anyone have any suggestions on how to accomplish this task?

Zick

By Mikey - January 14, 2013

Thanks for the feedback Greg, I've replyted to the email with a request for quote on a plugin.

By Mikey - January 14, 2013

Thanks for the Plugin guys - works perfectly!