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 2010/07/02 16:28:19 UTC

[Solr Wiki] Update of "SolPHP" by israelekpo

Dear Wiki user,

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

The "SolPHP" page has been changed by israelekpo.
http://wiki.apache.org/solr/SolPHP?action=diff&rev1=23&rev2=24

--------------------------------------------------

  <queryResponseWriter name="php" class="org.apache.solr.request.PHPResponseWriter"/>
  <queryResponseWriter name="phps" class="org.apache.solr.request.PHPSerializedResponseWriter"/>
  }}}
+ 
+ You can also use the new response writer plugin for PHP here
+ 
+ https://issues.apache.org/jira/browse/SOLR-1967
+ 
+ {{{
+ <code>
+ <queryResponseWriter name="phpnative" class="org.apache.solr.request.PHPNativeResponseWriter">
+ <!-- You can choose a different class for your objects. Just make sure the class is available in the client -->
+ <str name="objectClassName">SolrObject</str>
+ <!--
+ 0 means OBJECT_PROPERTIES_STORAGE_MODE_INDEPENDENT
+ 1 means OBJECT_PROPERTIES_STORAGE_MODE_COMBINED
+ 
+ In independed mode, each property is a separate property
+ In combined mode, all the properites are merged into a _properties array.
+ The combined mode allows you to create custom __getters and you could also implement ArrayAccess, Iterator and Traversable
+ -->
+ <int name="objectPropertiesStorageMode">0</int>
+ </queryResponseWriter
+ 
+ <code>
+ 
+ 
+ }}}
  ----
  CategoryQueryResponseWriter