Result
class Result extends Plugin implements JsonSerializable, Countable
Basic result class. This object is substituted for a CEO model if the content object isn't found. This can happen if the content hasn't been synced in some time.
Traits
Methods
Return the published_at DateTime
Return searchUrl
Return searchPreviewUrl Always returns false
No description
Build result from a Sphinx match.
Return searchTitle
Return searchType
Return searchPreview
Implements json_serialize for search results
No description
Details
in Searchable at line 17
string
getSearchTitle()
Determine the search title for an item
in Searchable at line 40
string
getSearchType()
Determine the model type
at line 99
DateTime
getSearchDate()
Return the published_at DateTime
in Searchable at line 81
string
getSearchPreview()
Determine the preview text
at line 80
string
getSearchUrl()
Return searchUrl
at line 90
boolean
getSearchPreviewUrl()
Return searchPreviewUrl Always returns false
at line 22
__construct($attrs = [])
at line 38
Result
fromSphinx(array $match)
Build result from a Sphinx match.
Expected to be in the form of
array(
'attrs' => ...
)
at line 48
string
getTitle()
Return searchTitle
at line 57
string
getType()
Return searchType
at line 66
string
getPreview()
Return searchPreview
at line 109
array
jsonSerialize()
Implements json_serialize for search results