IT. Expert System.

PHP

Returns an array representation of the document


SolrDocument::toArray

(PECL solr >= 0.9.2)

SolrDocument::toArrayReturns an array representation of the document

Description

public array SolrDocument::toArray ( void )

Returns an array representation of the document.

Parameters

This function has no parameters.

Return Values

Returns an array representation of the document.

Examples

Example #1 SolrDocument::toArray() example

<?php

$doc 
= new SolrDocument();

$doc->addField('id'1123);

$doc->features "PHP Client Side";
$doc->features "Fast development cycles";

$doc['cat'] = 'Software';
$doc['cat'] = 'Custom Search';
$doc->cat   'Information Technology';

print_r($doc->toArray());

?>

The above example will output something similar to:

 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       )     )   ) ) 



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 679 / . Delta: 0.17201 с