SilverStripe\Elastica\QueryGenerator::getSearchFieldsMappingForClasses
Get a hash of name to Elasticserver mapping, e.g. 'Title' => 'string' Use SS_Cache to save on database hits, as this data only changes at build time.
Signature
public function getSearchFieldsMappingForClasses([string
$classes = NULL,
[
$fieldsAllowed = NULL]] )
Parameters
$classes
—
string
- CSV or array of ClassNames to search, or empty for
all of SiteTree
$fieldsAllowed
—
Returns
- array
- Array hash of fieldname to Elasticsearch mapping