Forums / Discussions / Advanced development with eZ Find - part 1 : Datatypes in Solr and eZ Find

Monday 07 June 2010 8:05:09 am - 3 replies

» Read full tutorial

Introduction

Here is the first part of a series of tutorials about eZ Find. At the end of this series, you will have been exposed all details on how it works, and be able to make an advanced usage, in various context, of this enterprise-grade search plug-in. This series will serve as a base for a talk on the subject at the eZ Conference 2010, in Berlin. As well as the Libre Software meeting.

 
Author Message

H-Works Agency

Wednesday 14 July 2010 11:46:17 pm

Thank you for this article, very valuable.

Just a precision : how do you call from your ezfind template fetch attr_title_s or attr_title_t to avoid sentence explosions ?

EZP is Great

gilles guirand

Thursday 15 July 2010 11:52:17 pm

@Martin : "article/title", the "_s" or "_t" depends of the context (filtering, sorting, facetting...), and your settings

http://share.ez.no/tutorials/ez-publish/advanced-development-with-ez-find-part-1-datatypes-in-solr-and-ez-find/%28page%29/5

And for the settings :

http://share.ez.no/tutorials/ez-publish/advanced-development-with-ez-find-part-1-datatypes-in-solr-and-ez-find/%28page%29/6

But you also could use the Solr syntax, like explain in this article :

http://share.ez.no/tutorials/ez-publish/advanced-development-with-ez-find-part-3-leveraging-the-solr-syntax/%28page%29/2

--
Gilles Guirand
eZ Community Board Member
http://twitter.com/gandbox
http://www.gandbox.fr

Luca Realdi

Wednesday 09 February 2011 2:34:34 am

Hi Gilles!

Thank you for your great tutorials!!!

I think I discovered a small bug in your ezfSolrDocumentFieldObjectRelation class (http://projects.ez.no/ezfsolrdocumentfieldobjectrelation/) on line 256

What do you think?

$finalValue = $this->preProcessValue( $field->ContentObjectAttribute->metaData(),
                        parent::getClassAttributeType( $tmpClassAttribute ) ); 

//instead of
$finalValue = $this->preProcessValue( $field->ContentObjectAttribute->metaData(),
                        parent::getClassAttributeType( $contentClassAttribute ) );

You must be logged in to post messages in this topic!

eZ debug

Timing: Jan 18 2025 00:09:05
Script start
Timing: Jan 18 2025 00:09:05
Module start 'content'
Timing: Jan 18 2025 00:09:06
Module end 'content'
Timing: Jan 18 2025 00:09:06
Script end

Main resources:

Total runtime0.2649 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.2109180.7969
Module start 'content' 0.00660.1398 770.0078745.7031
Module end 'content' 0.14640.1184 1,515.7109340.8047
Script end 0.2648  1,856.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00421.5889210.0002
Check MTime0.00150.5789210.0001
Mysql Total
Database connection0.00080.299810.0008
Mysqli_queries0.180568.16662100.0009
Looping result0.00210.78542080.0000
Template Total0.230687.120.1153
Template load0.00220.834120.0011
Template processing0.228386.213720.1142
Template load and register function0.00020.068010.0002
states
state_id_array0.00200.769120.0010
state_identifier_array0.00150.550530.0005
Override
Cache load0.00180.6950280.0001
Sytem overhead
Fetch class attribute name0.00120.447470.0002
Fetch class attribute can translate value0.00140.517040.0003
class_abstraction
Instantiating content class attribute0.00000.004870.0000
XML
Image XML parsing0.00240.899040.0006
General
dbfile0.00301.1411410.0001
String conversion0.00000.002330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplforum_topic/full.tplextension/community_design/design/suncana/override/templates/forum_topic/full.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.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/separator.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltags/separator.tplEdit templateOverride template
3content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs