Forums / Extensions / eZ Find / Result in JSON-Format / rawSolrRequest

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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: Exponential is converting the Solr-result into an array even if the wt-
parameter is set to "json".

Alex