|
update : 2015.11.03
php.shukuma.com검색:
|
SolrDocument::toArray(PECL solr >= 0.9.2) SolrDocument::toArray — Returns an array representation of the document 설명
public array SolrDocument::toArray
( void
)
Returns an array representation of the document. 인수이 함수는 인수가 없습니다. 반환값Returns an array representation of the document. 예제
Example #1 SolrDocument::toArray() example
<?php위 예제의 출력 예시:
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
)
)
)
)
|