Base class for document field definitions.
Properties¶
$boost
¶
The importance of that field (boost factor).
|
|
$highlight
¶
Whether highlighting should be performed for this field on result documents.
|
|
$inResult
¶
Whether the field should be a part of the resulting document.
|
|
$multiValue
¶
Whether the field supports multiple values.
|
|
$name
¶
Name of the document field. Will be used to query this field.
|
|
$type
¶
|
|
[deprecated] The type name of the facet, deprecated - use FieldType::getType instead.
$type
¶
The type name of the facet. Has to be handled by the solr schema.
|
|
Methods¶
__construct()
¶
Construct object optionally with a set of properties.
|
|
Readonly properties values must be set using $properties
as they aren't writable anymore
after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string, mixed> | [] | - |
getType()
¶
|
|
Return values
string
getProperties()
¶
Returns list of available properties' names.
|
|
Override to add dynamic properties.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<int, string> | [] |
Additional dynamic properties exposed on the object |
Return values
array<int, string>