Combine two fields for search engine results

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

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

I need my search engine to search the combined fields (prefix_number,num), so if someone enters XYZ12 into the search engine, it produces the record results associated with the prefix_number,num. However if I search for XYZ12 a combination of the (prefix_number,num) fields it produces no results, but if I search for XYZ only or 12 only my record shows up in the search results. Does anyone have any suggestions how I can search for both (XYZ12) prefix_number,num combined using the search tool and get my search engine to produce the desired results for the record?

Item Number: XYZ12

<?php echo $record['prefix_number'] ?> = XYZ

<?php echo $record['num'] ?> = 12

<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<input name="title,content,prefix_number,num,summary_keyword" type="text" value="" size="40" />
<input name="submit" type="submit" value="Search"/>
</form>

<h4><strong>Item Number:&nbsp;<?php echo $record['prefix_number'] ?><?php echo $record['num'] ?> <?php echo $record['title'] ?></strong></a></h4>

Thanks Zick

By Mikey - January 9, 2013

Anyone have some suggestions on the topic of joining two fields for the search engine?