SilverStripe Search

SearchResultGetTrait

Trait SearchResultGetTrait

Getters for search results to keep the class clean.

Table of Contents

Properties

$facets  : ArrayData
$highlight  : Highlighting
$spellcheck  : ArrayList
$totalItems  : int

Methods

getFacets()  : ArrayData
Retrieve the facets from the results
getHighlight()  : array<string|int, mixed>|Highlighting
Get the highlighting
getSpellcheck()  : ArrayList
Get the spellchecked results
getTotalItems()  : int
Total items in the result

Properties

Methods

getFacets()

Retrieve the facets from the results

public getFacets() : ArrayData
Return values
ArrayData

getHighlight()

Get the highlighting

public getHighlight() : array<string|int, mixed>|Highlighting
Return values
array<string|int, mixed>|Highlighting

getSpellcheck()

Get the spellchecked results

public getSpellcheck() : ArrayList
Return values
ArrayList

getTotalItems()

Total items in the result

public getTotalItems() : int
Return values
int

        
On this page

Search results