SolrUtils::digestXmlResponse
(PECL solr >= 0.9.2)
SolrUtils::digestXmlResponse — Parses an response XML string into a SolrObject
Description
$xmlresponse
[, int $parse_mode
= 0
] )This method parses an response XML string from the Apache Solr server into a SolrObject. It throws a SolrException if there was an error.
Parameters
-
xmlresponse
-
The XML response string from the Solr server.
-
parse_mode
-
Use SolrResponse::PARSE_SOLR_OBJ or SolrResponse::PARSE_SOLR_DOC
Return Values
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 Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с поисковыми системами
- Apache Solr
- Функция SolrUtils::digestXmlResponse() - Parses an response XML string into a SolrObject
- Функция SolrUtils::escapeQueryChars() - Escapes a lucene query string
- Функция SolrUtils::getSolrVersion() - Returns the current version of the Solr extension
- Функция SolrUtils::queryPhrase() - Prepares a phrase from an unescaped lucene string
Коментарии
404 Not Found