|
SolrDocument::toArrayReturns an array representation of the document Beschreibung
public array SolrDocument::toArray
( void
)
Returns an array representation of the document. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteReturns an array representation of the document. Beispiele
Beispiel #1 SolrDocument::toArray example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Array
(
[document_boost] => 0
[field_count] => 3
[fields] => Array
(
[0] => SolrDocumentField Object
(
[name] => id
[boost] => 0
[values] => Array
(
[0] => 1123
)
)
[1] => SolrDocumentField Object
(
[name] => features
[boost] => 0
[values] => Array
(
[0] => PHP Client Side
[1] => Fast development cycles
)
)
[2] => SolrDocumentField Object
(
[name] => cat
[boost] => 0
[values] => Array
(
[0] => Software
[1] => Custom Search
[2] => Information Technology
)
)
)
)
|