You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2007/11/12 00:32:38 UTC

[Solr Wiki] Update of "SolPHP" by PieterBerkel

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 PieterBerkel:
http://wiki.apache.org/solr/SolPHP

The comment on the change is:
Fixed serialized php example, added note about configuring solrconfig.xml

------------------------------------------------------------------------------
  
  Example usage:
  {{{
- $serializedResult = file_get_contents('http://localhost:8983/solr/select?q=iPod&wt=php');
+ $serializedResult = file_get_contents('http://localhost:8983/solr/select?q=iPod&wt=phps');
  $result = unserailize($serializedResult);
  print_r($result);
  }}}
+ 
+ In order to use either PHP or Serialized PHP Response Writers, you may first need to uncomment these two lines in your solrconfig.xml:
+ {{{
+ <queryResponseWriter name="php" class="org.apache.solr.request.PHPResponseWriter"/>
+ <queryResponseWriter name="phps" class="org.apache.solr.request.PHPSerializedResponseWriter"/>
+ }}}
+ 
  ----
  CategoryQueryResponseWriter