advancedsearch.tpl fetch. Variable for "all word" searches

Author Message

fintan sheehan

Tuesday 20 November 2007 4:13:18 am

Hello,
I wish to force advancedsearch.tpl override to use "all words" search only.
What variables in fetch below are used to differentiate between "all word' or "phrase" searches.


{set search=fetch(content,search,
hash(text,$search_text,
section_id,$search_section_id,
subtree_array,$search_sub_tree,
class_id,$search_contentclass_id,
class_attribute_id,$search_contentclass_attribute_id,
offset,$view_parameters.offset,
publish_date,$search_date,
limit,$page_limit))}
{set search_result=$search['SearchResult']}
{set search_count=$search['SearchCount']}
{set stop_word_array=$search['StopWordArray']}
{set search_data=$search}

Can the variable below such as $full_search_text be passed to "fetch(content,search...."

<input class="box" type="text" size="40" name="SearchText" value="{$full_search_text|wash}" />

<input class="box" type="text" size="40" name="PhraseSearchText" value="{$phrase_search_text|wash}" />

<input class="box" type="text" size="40" name="AnyWordSearchText" value="" />
</div>

Thanks,
Fintan

Andy Caiger

Sunday 12 December 2010 8:03:05 pm

I have the same question. Using fetch how do we search $search_text as a phrase?

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.