Search: ezcSearchDefinitionDocumentField
[ ]
[ Solr schema ]
[ ]
[ ]
[ ]
[ ]
Class: ezcSearchDefinitionDocumentField
|
The struct contains a field definition. [
source]
Member Variables
|
public float |
$boost
How much priority to give to a specific field. |
|
public string |
$field
The field name |
|
public bool |
$highlight
Whether this field should be used for highlighting |
|
public bool |
$inResult
Whether the field should be part of the result set |
|
public bool |
$multi
Whether there can be multiple values for this field |
|
public int |
$type
|
Method Summary
|
public ezcSearchDefinitionDocumentField |
__construct(
$field, [$type = ezcSearchDocumentDefinition::TEXT], [$boost = 1.0], [$inResult = true], [$multi = false], [$highlight = false] )
Contructs a new ezcSearchDefinitionDocumentField. |
|
public static ezcSearchDefinitionDocumentField |
__set_state(
$array )
Returns a new instance of this class with the data specified by $array. |
Methods
__construct
ezcSearchDefinitionDocumentField __construct(
string
$field, [int
$type = ezcSearchDocumentDefinition::TEXT], [float
$boost = 1.0], [bool
$inResult = true], [bool
$multi = false], [bool
$highlight = false] )
Contructs a new ezcSearchDefinitionDocumentField.
Parameters
| Name |
Type |
Description |
$field |
string |
|
$type |
int |
|
$boost |
float |
|
$inResult |
bool |
|
$multi |
bool |
|
$highlight |
bool |
|
__set_state
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.
Parameters
| Name |
Type |
Description |
$array |
array(string=>mixed) |
|
Last updated: Mon, 10 Nov 2008