Result in JSON-Format / rawSolrRequest

Author Message

Alex Yes

Thursday 07 May 2009 9:51:20 am

Hello,

I am trying to get the result of eZ Find as JSON-Object. Solr supports this by adding wt=json
at the query. As eZ Find does not directly supports this I am trying to do this via the function
rawSolrRequest of ez Find. Has anyone successfully executed this function yet?

I have tried the following without success:

fetch(ezfind, rawSolrRequest, hash(baseURL,'http://localhost:8983/solr/', request,'select?q=*:*'))

fetch(ezfind, rawSolrRequest, hash(baseURL,'http://localhost:8983/solr/', request,'select', parameters,array('q','*:*')))

Thanks,
Alex

Alex Yes

Friday 08 May 2009 4:09:40 am

Problem was a bug in rawSolrRequest, see http://issues.ez.no/IssueView.php?Id=14880&activeItem=1

This is now working fine:

fetch(ezfind, rawSolrRequest, hash(baseURL,'http://localhost:8983/solr/', request,'select?q=*:*'))

Note: ez Publish is converting the Solr-result into an array even if the wt-
parameter is set to "json".

Alex

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 30 2025 21:12:32
Script start
Timing: Jan 30 2025 21:12:32
Module start 'layout'
Timing: Jan 30 2025 21:12:32
Module start 'content'
Timing: Jan 30 2025 21:12:32
Module end 'content'
Timing: Jan 30 2025 21:12:32
Script end

Main resources:

Total runtime0.0223 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.2813151.2266
Module start 'layout' 0.00500.0041 739.5078220.7188
Module start 'content' 0.00910.0115 960.2266998.8984
Module end 'content' 0.02060.0016 1,959.125029.9922
Script end 0.0222  1,989.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.7716140.0002
Check MTime0.00114.8116140.0001
Mysql Total
Database connection0.00083.547410.0008
Mysqli_queries0.003013.378330.0010
Looping result0.00000.054610.0000
Template Total0.00125.210.0012
Template load0.00094.049510.0009
Template processing0.00021.114310.0002
Override
Cache load0.00062.832410.0006
General
dbfile0.00020.950580.0000
String conversion0.00000.025740.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