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.

Author:
Frederick Giasson, Structured Dynamics LLC.

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.

__destruct (  ) 

Definition at line 562 of file Solr.php.


Member Function Documentation

addInferredType ( inferredType  ) 

Add an inferred type.


Parameters:
[in] $inferredType Inferred type to add to the solr document
Author:
Frederick Giasson, Structured Dynamics LLC.




Definition at line 610 of file Solr.php.

addObjectPropertyLabel ( propertyLabel  ) 

Add an object property/label pair.


Parameters:
[in] $propertyLabel Property/label pair to add to the solr document
Author:
Frederick Giasson, Structured Dynamics LLC.




Definition at line 574 of file Solr.php.

addPropertyText ( propertyText  ) 

Add an object property/text pair.


Parameters:
[in] $propertyText Property/text pair to add to the solr document
Author:
Frederick Giasson, Structured Dynamics LLC.




Definition at line 586 of file Solr.php.

addType ( type  ) 

Add a type to the solr document.


Parameters:
[in] $type type to add to the solr document
Author:
Frederick Giasson, Structured Dynamics LLC.




Definition at line 598 of file Solr.php.

References $type.

serializeSolrDocument (  ) 

Serialize this solr document to get indexed by solr.


Returns:
returns a serialized solr document
Author:
Frederick Giasson, Structured Dynamics LLC.




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
Author:
Frederick Giasson, Structured Dynamics LLC.




Definition at line 667 of file Solr.php.

Referenced by serializeSolrDocument().


Field Documentation

$inferredTypes

Inferred types of a document.

Definition at line 544 of file Solr.php.

Referenced by __construct().

$objectPropertiesLabels

object property/label pairs

Definition at line 547 of file Solr.php.

Referenced by __construct().

$propertiesTexts

property/text pairs

Definition at line 550 of file Solr.php.

Referenced by __construct().

$types

Types of a document.

Definition at line 541 of file Solr.php.

Referenced by __construct().

$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:
Copyright © 2009-2011. Structured Dynamics LLC Structured Dynamics LLC. All rights reserved.