Properties
| Name | Access | Type | Description |
|---|---|---|---|
| Boost | Read, Write | Single | Boost |
| Content | Read, Write | String | Content |
| ContentId | Read, Write | Guid | Content Id |
| ContentTypeId | Read, Write | Guid | Content Type Id |
| Errors | Read | IList of Error | Errors |
| Id | Read, Write | String | Id |
| IndexFields | Read, Write | List of IndexField | Index Fields |
| Title | Read, Write | String | Title |
| TypeName | Read, Write | String | Type Name |
| Url | Read, Write | String | Url |
| Warnings | Read | IList of Warning | Warnings |
Methods
AddField
Velocity
$searchIndexDocument.AddField($fieldName, $fieldValue)
JavaScript
searchIndexDocument.AddField(fieldName, fieldValue);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| fieldName | String | Field Name | Required | ||
| fieldValue | String | Field Value | Required |
Returns
NothingHasErrors
Velocity
#set($booleanResponse = $searchIndexDocument.HasErrors())
JavaScript
var booleanResponse = searchIndexDocument.HasErrors();
Returns
BooleanHasWarnings
Velocity
#set($booleanResponse = $searchIndexDocument.HasWarnings())
JavaScript
var booleanResponse = searchIndexDocument.HasWarnings();
Returns
BooleanHasWarningsOrErrors
Velocity
#set($booleanResponse = $searchIndexDocument.HasWarningsOrErrors())
JavaScript
var booleanResponse = searchIndexDocument.HasWarningsOrErrors();
Returns
BooleanRemoveField
Velocity
$searchIndexDocument.RemoveField($field)
JavaScript
searchIndexDocument.RemoveField(field);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| field | IndexField | Field | Required |
Returns
NothingThrowErrors
Velocity
$searchIndexDocument.ThrowErrors()
JavaScript
searchIndexDocument.ThrowErrors();