SolrDocument Class Reference
Description of a Solr document record. More...
Public Member Functions | |
| __construct ($uri="", $types=array(), $inferredTypes=array(), $objectPropertiesLabels=array(), $propertiesTexts=array()) | |
| __destruct () | |
| addObjectPropertyLabel ($propertyLabel) | |
| Add an object property/label pair. | |
| addPropertyText ($propertyText) | |
| Add an object property/text pair. | |
| addType ($type) | |
| Add a type to the solr document. | |
| addInferredType ($inferredType) | |
| Add an inferred type. | |
| serializeSolrDocument () | |
| Serialize this solr document to get indexed by solr. | |
| xmlEncode ($string) | |
| Encode content to be included in XML files. | |
Public Attributes | |
| $uri | |
| Unique identifier of the document. | |
| $types | |
| Types of a document. | |
| $inferredTypes | |
| Inferred types of a document. | |
| $objectPropertiesLabels | |
| object property/label pairs | |
| $propertiesTexts | |
| property/text pairs | |
Detailed Description
Description of a Solr document record.
Definition at line 450 of file Solr.php.
Constructor & Destructor Documentation
| SolrDocument::__construct | ( | $ | uri = "", |
|
| $ | types = array(), |
|||
| $ | inferredTypes = array(), |
|||
| $ | objectPropertiesLabels = array(), |
|||
| $ | propertiesTexts = array() | |||
| ) |
Definition at line 467 of file Solr.php.
References $inferredTypes, $objectPropertiesLabels, $propertiesTexts, $types, and $uri.
Member Function Documentation
| SolrDocument::addInferredType | ( | $ | inferredType | ) |
| SolrDocument::addObjectPropertyLabel | ( | $ | propertyLabel | ) |
| SolrDocument::addPropertyText | ( | $ | propertyText | ) |
| SolrDocument::addType | ( | $ | type | ) |
| SolrDocument::serializeSolrDocument | ( | ) |
Serialize this solr document to get indexed by solr.
- Returns:
- returns a serialized solr document
Definition at line 537 of file Solr.php.
References $type, and xmlEncode().
Here is the call graph for this function:

| SolrDocument::xmlEncode | ( | $ | string | ) |
Encode content to be included in XML files.
- Parameters:
-
[in] $string The content string to be encoded
- Returns:
- returns the encoded string
Definition at line 582 of file Solr.php.
Referenced by serializeSolrDocument().
Member Data Documentation
| SolrDocument::$inferredTypes |
| SolrDocument::$objectPropertiesLabels |
| SolrDocument::$propertiesTexts |
| SolrDocument::$types |
| SolrDocument::$uri |
Unique identifier of the document.
Definition at line 453 of file Solr.php.
Referenced by __construct().
The documentation for this class was generated from the following file:
