SolrDocument Class Reference

Description of a Solr document record. More...

List of all members.

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.

Author:
Frederick Giasson, Structured Dynamics LLC.

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.

SolrDocument::__destruct (  ) 

Definition at line 477 of file Solr.php.


Member Function Documentation

SolrDocument::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 525 of file Solr.php.

SolrDocument::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 489 of file Solr.php.

SolrDocument::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 501 of file Solr.php.

SolrDocument::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 513 of file Solr.php.

References $type.

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



Definition at line 582 of file Solr.php.

Referenced by serializeSolrDocument().


Member Data Documentation

SolrDocument::$inferredTypes

Inferred types of a document.

Definition at line 459 of file Solr.php.

Referenced by __construct().

SolrDocument::$objectPropertiesLabels

object property/label pairs

Definition at line 462 of file Solr.php.

Referenced by __construct().

SolrDocument::$propertiesTexts

property/text pairs

Definition at line 465 of file Solr.php.

Referenced by __construct().

SolrDocument::$types

Types of a document.

Definition at line 456 of file Solr.php.

Referenced by __construct().

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