\midcom_services_indexer_solrDocumentFactory

This class provides methods to make XML for the different solr xml requests.

Summary

Methods
Properties
Constants
__construct()
reset()
add()
delete()
delete_all()
to_xml()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_index_name
$xml
N/A

Properties

$_index_name

$_index_name : 

The "index" to use (Solr has single index but we add this as query constraint as necessary

Type

$xml

$xml : \DomDocument

The xml document to post.

Type

\DomDocument

Methods

__construct()

__construct(  $index_name) 

Parameters

$index_name

reset()

reset() 

add()

add(  $document) 

Adds a document to the index.

Parameters

$document

delete()

delete(string  $id) 

Deletes one element

Parameters

string $id

the element id

delete_all()

delete_all(  $constraint) 

Deletes all elements with the id defined (this should be all midgard documents)

Parameters

$constraint

to_xml()

to_xml() 

Returns the generated XML