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. | |
Data Fields | |
| $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 535 of file Solr.php.
Constructor & Destructor Documentation
| __construct | ( | $ | uri = "", |
|
| $ | types = array(), |
|||
| $ | inferredTypes = array(), |
|||
| $ | objectPropertiesLabels = array(), |
|||
| $ | propertiesTexts = array() | |||
| ) |
Definition at line 552 of file Solr.php.
References $inferredTypes, $objectPropertiesLabels, $propertiesTexts, $types, and $uri.
Member Function Documentation
| addInferredType | ( | $ | inferredType | ) |
| addObjectPropertyLabel | ( | $ | propertyLabel | ) |
| addPropertyText | ( | $ | propertyText | ) |
| addType | ( | $ | type | ) |
| serializeSolrDocument | ( | ) |
Serialize this solr document to get indexed by solr.
- Returns:
- returns a serialized solr document
Definition at line 622 of file Solr.php.
References $type, and xmlEncode().
Here is the call graph for this function:

| 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 667 of file Solr.php.
Referenced by serializeSolrDocument().
Field Documentation
| $inferredTypes |
| $objectPropertiesLabels |
| $propertiesTexts |
| $types |
| $uri |
Unique identifier of the document.
Definition at line 538 of file Solr.php.
Referenced by __construct().
The documentation for this class was generated from the following file:
