Display of output from Solr admin hitting ez db

Author Message

Kedar Deshpande

Monday 17 May 2010 7:12:23 am

We have an instance of ezpublish running with the ezFind extension. For searches, we are hitting the solr admin directly and receiving an xml output of the results. The issue is that reading these results is difficult because most of the content is mapped to str nodes.

Does anyone know how to modify the solr output 'template' so that it maps or rather outputs values in a more manageable way?

thanks.

Paul Borgermans

Monday 17 May 2010 1:07:26 pm

Add wt=php or wt=json

So you get either PHP array strings or JSON strings

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Kedar Deshpande

Monday 17 May 2010 2:06:59 pm

The options you suggested do help quite a bit. I'll write a JSON response parser and see if I can pull out the information in a better way for presentation and update this post.

thanks Paul.

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 03:12:27
Script start
Timing: Jan 18 2025 03:12:27
Module start 'layout'
Timing: Jan 18 2025 03:12:27
Module start 'content'
Timing: Jan 18 2025 03:12:28
Module end 'content'
Timing: Jan 18 2025 03:12:28
Script end

Main resources:

Total runtime0.6466 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.0068 589.3203152.6563
Module start 'layout' 0.00680.0040 741.976639.5078
Module start 'content' 0.01090.6336 781.4844532.2813
Module end 'content' 0.64450.0021 1,313.76568.2578
Script end 0.6466  1,322.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5597160.0002
Check MTime0.00150.2278160.0001
Mysql Total
Database connection0.00070.107210.0007
Mysqli_queries0.596692.2626590.0101
Looping result0.00070.1077570.0000
Template Total0.609894.320.3049
Template load0.00230.358920.0012
Template processing0.607593.947220.3037
Template load and register function0.00020.026310.0002
states
state_id_array0.00140.221210.0014
state_identifier_array0.00100.159320.0005
Override
Cache load0.00160.2541150.0001
Sytem overhead
Fetch class attribute can translate value0.00220.337920.0011
Fetch class attribute name0.00250.383540.0006
XML
Image XML parsing0.00090.138720.0004
class_abstraction
Instantiating content class attribute0.00000.001940.0000
General
dbfile0.00130.1946170.0001
String conversion0.00000.001340.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs