SolrSearchService::index
Assuming here that we're indexing a stdClass object with an ID field that is a unique identifier
Note that the structur eof the object array must be array( 'FieldName' => array( 'Type' => 'Fieldtype (eg date, string, int)', 'Value' => 'Actualvalue' ) ) You should include a field named 'ID' that dictates the ID of the object, and a field named 'ClassName' that is the name of the document's type
Signature
public function index(
$dataObject,
[String
$stage = NULL,
[array
$fieldBoost = ]] )
Parameters
$dataObject
—$stage
— object
If we're indexing for a particular stage or not.$fieldBoost
— array