SolrUtils::digestXmlResponse

(PECL solr >= 0.9.2)

SolrUtils::digestXmlResponseParses an response XML string into a SolrObject

说明

public static SolrUtils::digestXmlResponse ( string $xmlresponse [, int $parse_mode = 0 ] ) : SolrObject

This method parses an response XML string from the Apache Solr server into a SolrObject. It throws a SolrException if there was an error.

参数

xmlresponse

The XML response string from the Solr server.

parse_mode

Use SolrResponse::PARSE_SOLR_OBJ or SolrResponse::PARSE_SOLR_DOC

返回值

Returns the SolrObject representing the XML response.

If the parse_mode parameter is set to SolrResponse::PARSE_SOLR_OBJ Solr documents will be parses as SolrObject instances.

If it is set to SolrResponse::PARSE_SOLR_DOC, they will be parsed as SolrDocument instances.

相关文章
php datetimeimmutable parses a time string according to a specified formatphp domdocument dumps the internal xml tree back into a filephp domdocument dumps the internal document into a string using html formattingphp domdocument dumps the internal xml tree back into a stringphp dba 函数 splits a key in string representation into array representationphp informix 函数 writes a string into the slob objectphp paradox 函数 converts a date into a stringphp simplexml 函数 interprets an xml file into an objectphp simplexml 函数 interprets a string of xml into an objectphp mysqlnduhconnection escapes special characters in a string for use in an sql statement taking into account the current charset of the connectionphp sdo das xml 函数 returns root element s uri stringphp sdo das xml 函数 sets the given string as encodingphp sdo das xml 函数 creates an xml document object from scratch without the need to load a document from a file or stringphp sdo das xml 函数 returns sdo das xml document for a given xml instance stringphp sdo das xml 函数 saves the sdo das xml document object to a stringphp simplexmlelement return a well formed xml string based on simplexml elementphp solrresponse returns a solrobject representing the xml response from the serverphp solrutils parses an response xml string into a solrobjectphp solrutils escapes a lucene query stringphp swfshape draws the first character in the given string into the shape using the glyph definition from the given font
关注编程学问公众号