Skip to content
Snippets Groups Projects
Commit a4954610 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Add method to retrieve first indexed date.

parent 80e6c25f
No related merge requests found
...@@ -135,6 +135,16 @@ class SolrDefault extends DefaultRecord ...@@ -135,6 +135,16 @@ class SolrDefault extends DefaultRecord
parent::__construct($mainConfig, $recordConfig, $searchSettings); parent::__construct($mainConfig, $recordConfig, $searchSettings);
} }
/**
* Get the date this record was first indexed (if set).
*
* @return string
*/
public function getFirstIndexed()
{
return $this->fields['first_indexed'] ?? '';
}
/** /**
* Get highlighting details from the object. * Get highlighting details from the object.
* *
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment