lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "SolPHP" by NickJenkin
Date Thu, 25 Oct 2007 11:11:51 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by NickJenkin:
http://wiki.apache.org/solr/SolPHP

------------------------------------------------------------------------------
  Solr has a PHP response format that outputs an array (as PHP code) which can be eval'd.
  
  https://issues.apache.org/jira/browse/SOLR-196
- 
- <code>
+ Example usage:
+ {{{
  $code = file_get_contents('http://localhost:8983/solr/select?q=iPod&wt=php');
  eval("$result = " . $code . ";");
  print_r($result);
- </code>
+ }}}
  
  '''Using Solr's PHP Serialized Output (Solr Version >=1.3)'''
  Solr has a PHP response format that outputs a serialized array.
  
  https://issues.apache.org/jira/browse/SOLR-196
- 
- <code>
+ Example usage:
+ {{{
  $serializedResult = file_get_contents('http://localhost:8983/solr/select?q=iPod&wt=php');
  $result = unserailize($serializedResult);
  print_r($result);
- </code>
+ }}}
  

Mime
View raw message