Thank you i had not seen the mv_like_field, and mv_like_spec they certainly sound like they may be useful for what i need.  <br>Can anyone suggest some examples of this in use the documentation on RTFM is very sparse on these two fields it seems.<br>
<br>In regards to Stefan Hornburg the reason for me want to use the search region and search parameters, is that i am adding a feature to an already existing site heavily reliant on these.  I do not want to recode the pages i am adding the feature to as it is likely that i may miss something which is reliant on what already shows.<br>
Graham Hadgraft <br><br><div class="gmail_quote">On Wed, Mar 18, 2009 at 2:32 PM,  <span dir="ltr">&lt;<a href="mailto:ic@3edge.com">ic@3edge.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">graham hadgraft writes:<br>
<br>
&gt; Im having trouble trying to perform a search.  Im creating a search and i<br>
&gt; need to do to clauses where products.description LIKE &#39;%something%&#39; and<br>
&gt; variants.description LIKE &#39;%something%&#39;.  Im using the search-region and<br>
&gt; mv_searchspec parameters but i cant seem to get it to perform the search.<br>
&gt;<br>
&gt; As far as i can tell from the interchange docs you suppose to reference<br>
&gt; another table using the format table:field in the mv_search_fields parameter<br>
&gt; but it does not seem to be searching using this.<br>
&gt;<br>
&gt; I have the following search parameters.<br>
&gt;<br>
&gt; mv_coordinate = &#39;yes&#39;<br>
&gt; mv_search_file = &#39;products&#39;<br>
&gt; mv_searchtype = &#39;db&#39;<br>
&gt; mv_return_fields = &#39;sku, description, prod_group, category, option_type,<br>
&gt; manufacturer, comment, rrp, price&#39;<br>
&gt; mv_sort_field = &#39;category, manufacturer, price, description&#39;<br>
&gt; mv_sort_option = &#39;f,f,n,f&#39;<br>
&gt;<br>
&gt; mv_search_field = &#39;prod_group&#39;<br>
&gt; mv_column_op = &#39;rm&#39;<br>
&gt; mv_search_spec = &#39;something&#39;<br>
&gt;<br>
&gt; mv_search_field = &#39;variants:description&#39;<br>
&gt; mv_column_op = &#39;rm&#39;<br>
&gt; mv_search_spec = &#39;something&#39;<br>
&gt;<br>
&gt; As i said this does not seem to match the desired results the equivalent sql<br>
&gt; query for this would be:<br>
&gt;<br>
&gt; SELECT p.sku, p.description, p.prod_group, p.category, p.option_type,<br>
&gt; p.manufacturer, p.comment, p.rrp, p.price<br>
&gt; FROM products AS p, variants AS v<br>
&gt; WHERE v.sku = p.sku AND p.prod_group LIKE &#39;%something%&#39; AND v.description<br>
&gt; LIKE &#39;%something%&#39;<br>
&gt; ORDER BY category, manufacturer, price, description<br>
&gt;<br>
&gt; Unfortunatly for certain resons i can not use  query i have to uise the<br>
&gt; search-region. What is wrong with the search parameters i am adding.<br>
&gt;<br>
&gt; Graham<br>
<br>
</div></div>Did you look at mv_like_field (lf)  and mv_like_spec (ls)  ?<br>
<br>
CU,<br>
<br>
Gert<br>
<div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
interchange-users mailing list<br>
<a href="mailto:interchange-users@icdevgroup.org">interchange-users@icdevgroup.org</a><br>
<a href="http://www.icdevgroup.org/mailman/listinfo/interchange-users" target="_blank">http://www.icdevgroup.org/mailman/listinfo/interchange-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>====================================<br><a href="http://www.8bitscraps.co.uk">http://www.8bitscraps.co.uk</a>  -  Tech Tips &amp; tools<br>