[Solved] How to implement a search in my ez publish site

Author Message

Mohamed Ben-Ahssene

Sunday 29 March 2009 1:13:23 am

Hi
I read on the technical doc of ezpublish 4 there is a search engine , where is it? How can I use it? And is it ez find? beacause I can't find a real doc to use it.
your answer will help me, thank you.

André R.

Sunday 29 March 2009 8:25:19 am

There is a basic search engine included (ezsearch), but the preferred one is eZ Find.
The doc is on the documentation page, look at your left side for the 'Extensions' part.
There is also some doc bundled with the extension.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

justin kazadi

Monday 30 March 2009 12:45:22 am

Hi,
ez publish came with an search engine but you can use also ez find extension.

if you want to use the search engine , use this code in your pagelayout:

<form method="get"
action={'/content/search'|ezurl}>
<input type="text" name="SearchText" />
<input type="submit" name="SearchButton"
value="Search" />
</form>

i think this can help you.

good luck

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Mohamed Ben-Ahssene

Monday 30 March 2009 1:35:46 am

Hi again Justin!

Yes it will help me, thank you very much Justin.

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

Main resources:

Total runtime1.3148 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1719152.6406
Module start 'layout' 0.00550.0049 741.812539.4766
Module start 'content' 0.01041.3031 781.2891588.9766
Module end 'content' 1.31340.0013 1,370.265612.4219
Script end 1.3148  1,382.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2411160.0002
Check MTime0.00130.0997160.0001
Mysql Total
Database connection0.00070.052210.0007
Mysqli_queries1.265996.2796620.0204
Looping result0.00060.0424600.0000
Template Total1.274897.020.6374
Template load0.00230.172120.0011
Template processing1.272696.785920.6363
Template load and register function0.00020.017710.0002
states
state_id_array0.00080.062910.0008
state_identifier_array0.00170.126120.0008
Override
Cache load0.00190.1419220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.047830.0002
Fetch class attribute name0.00100.075560.0002
XML
Image XML parsing0.00140.108330.0005
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00090.0711230.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs