Property | Type | Description | |
---|---|---|---|
$config | array | |
||
$joins | array | ||
$searchableTypes | array |
Method | Description | |
---|---|---|
__construct ( |
||
getConfig ( string $contentType ) : array | false | Get the config of all fields for a given content type. | |
getFieldConfig ( string $contentType, string $field ) : array | false | Get the config of one given field for a given content type. | |
getJoins ( string $contentType ) : array | Helper method to return the join search columns for a ContentType weighting based on type. |
Method | Description | |
---|---|---|
getSearchableColumns ( string $type ) : void | Determine what columns are searchable for a given ContentType. | |
isInvisible ( string $contentType ) : boolean | Does some checks to see whether a ContentType should appear in search results. | |
parseContenttypes ( ) : void | Iterates over the main config and delegates weighting to both searchable columns and searchable taxonomies. | |
parseTaxonomies ( string $contentType, array $taxonomies ) : void | Iterates the taxonomies for a given ContentType, then assigns a weighting based on type. |
protected getSearchableColumns ( string $type ) : void | ||
$type | string | |
return | void |
protected isInvisible ( string $contentType ) : boolean | ||
$contentType | string | |
return | boolean |
protected parseContenttypes ( ) : void | ||
return | void |