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.

eZ debug

Timing: Jan 18 2025 05:17:58
Script start
Timing: Jan 18 2025 05:17:58
Module start 'layout'
Timing: Jan 18 2025 05:17:58
Module start 'content'
Timing: Jan 18 2025 05:17:58
Module end 'content'
Timing: Jan 18 2025 05:17:58
Script end

Main resources:

Total runtime0.0167 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.3438152.6563
Module start 'layout' 0.00620.0030 742.000039.4922
Module start 'content' 0.00920.0056 781.492289.4297
Module end 'content' 0.01480.0018 870.921930.3047
Script end 0.0166  901.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.2423140.0002
Check MTime0.00126.9105140.0001
Mysql Total
Database connection0.00063.680010.0006
Mysqli_queries0.002917.249030.0010
Looping result0.00000.095910.0000
Template Total0.00148.610.0014
Template load0.00085.025410.0008
Template processing0.00063.578310.0006
Override
Cache load0.00063.753010.0006
General
dbfile0.00031.704780.0000
String conversion0.00000.053040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs