Custom search engine and results

Author Message

Jonathan Marsigny

Tuesday 28 December 2004 7:02:01 am

Hello,

I want to custom my search.
I would to search in 'Keyword' box (datatype) only and not in the title or in the main text.

Can I use 'fetch' and how ?

Regards,

Jonathan

Ɓukasz Serwatka

Tuesday 28 December 2004 7:13:39 am

Hi,

You can search in class attribute.

{section loop=fetch( content, search, hash( text, 'your_text',
           class_attribute_id, your_class_attribute_id ) )}
   {$:item.name}<br />
{/section}

http://ez.no/ez_publish/documentation/reference/data_fetching/content/search

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 16:17:46
Script start
Timing: Jan 18 2025 16:17:46
Module start 'layout'
Timing: Jan 18 2025 16:17:46
Module start 'content'
Timing: Jan 18 2025 16:17:46
Module end 'content'
Timing: Jan 18 2025 16:17:46
Script end

Main resources:

Total runtime0.0228 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.0097 589.0391152.6250
Module start 'layout' 0.00970.0031 741.664139.4453
Module start 'content' 0.01280.0047 781.109489.4609
Module end 'content' 0.01760.0052 870.570330.3047
Script end 0.0228  900.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.005725.0167140.0004
Check MTime0.004117.9164140.0003
Mysql Total
Database connection0.00094.012310.0009
Mysqli_queries0.003314.441930.0011
Looping result0.00000.061610.0000
Template Total0.004820.910.0048
Template load0.004017.464210.0040
Template processing0.00083.412810.0008
Override
Cache load0.003615.983310.0036
General
dbfile0.00031.108080.0000
String conversion0.00000.040740.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