Which ezfind function to use in php ?

Author Message

H-Works Agency

Thursday 10 March 2011 6:43:47 am

Hello,

I need to make a ezfind search in php.

What function do i have to use ?

For now i used :

$solrSearch = new eZSolr();
$solrSearch->search( $query, $params );

But it can't search multiple language.

What is the good way to handle that ?

EZP is Great

H-Works Agency

Thursday 10 March 2011 8:42:37 am

Uhm you have to set SiteLanguageList ....

EZP is Great

Hamdi Laadhari

Thursday 10 March 2011 8:51:02 am

eZFunctionHandler::execute('ezfind', search, array()) in PHP equals to fetch(ezfind, search, hash()) in template

And hworks is right, the results follows your siteaccess RegionalSettings configuration

Certified eZ Publish Entreprise 4.5
http://www.laadhari.fr

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

Main resources:

Total runtime0.7686 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 589.1797152.6406
Module start 'layout' 0.00920.0069 741.820339.4844
Module start 'content' 0.01610.7508 781.3047531.0313
Module end 'content' 0.76690.0017 1,312.33598.1328
Script end 0.7686  1,320.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4975160.0002
Check MTime0.00140.1834160.0001
Mysql Total
Database connection0.00070.094510.0007
Mysqli_queries0.720693.7574590.0122
Looping result0.00060.0763570.0000
Template Total0.724294.220.3621
Template load0.00170.214720.0008
Template processing0.722694.009920.3613
Template load and register function0.00010.017210.0001
states
state_id_array0.00110.147810.0011
state_identifier_array0.00130.167420.0006
Override
Cache load0.00140.1839180.0001
Sytem overhead
Fetch class attribute can translate value0.00070.092020.0004
Fetch class attribute name0.00080.109640.0002
XML
Image XML parsing0.00060.082420.0003
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00090.1211170.0001
String conversion0.00000.004440.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs