class SearchIndexRecord

Properties

SearchController $mod
protected string $title
protected string $summary
protected string $indexContent
protected string[]|int[] $attachments
protected string $locale
protected int $relatedPostId
protected array $tags
protected array $preProcessingData
protected bool $removeFromIndex
protected array $metaData

Key-value array with meta data delivered by the modules for new faceted filters.

Methods

__construct(DocumentIndex $documentIndex)

SearchIndexRecord is always based on the respective document_index

addLocalizedContent(string $locale, bool $overwriteExistingContentForLocale = true)

Adds an additional language variant of this document

$this
addMetaData(string $key, string $value, string $instanceId = null)

Allows to set a single key-value pair in the meta data

appendIndexContent(string $indexContent)

No description

int[]|string[]
getAttachments()

No description

getContentRecords()

Returns an array of localized Content objects containing all available translations for this document

int
getCreatedAt()

Returns the initial document creation date as UNIX timestamp

getDocumentIndex()

No description

int
getGroupSecurityId()

No description

string
getIndexContent()

Sets the content which shall be additionally be indexed. By default the title and summary are already indexed.

string
getLocale()

No description

array
getMetaData()

No description

array
getNormalizedAttachments()

No description

int
getPostId()

No description

int
getPostType()

No description

getPreProcessingData(string $fieldId)

Used by Pre-Processing Logic to store / get additional data during indexing

int
getRelatedPostId()

No description

bool
getRemoveFromIndex()

Returns true of this index record has been marked for index removal

string
getSummary()

No description

array
getTags()

No description

string
getTitle()

No description

int
getUpdatedAt()

Returns the last document update date as UNIX timestamp

string
getUrl()

No description

int
getUserId()

No description

setAttachments(int[]|string[] $attachments)

No description

setIndexContent(string $indexContent)

No description

setLocale(string $locale)

No description

$this
setMetaData(array $metaData, string $instanceId = null)

Set additional meta data which allows to filter the search results by additional faceted filters.

void
setNormalizedAttachment(string $key, string $normalizedAttachment)

No description

setNormalizedAttachments(array $normalizedAttachments)

No description

setPreProcessingData(string $fieldId, $value)

Used by Pre-Processing Logic to store / get additional data during indexing

setRelatedPostId(int $relatedPostId)

No description

setRemoveFromIndex(bool $removeFromIndex = true)

Mark this Index Record for deletion during indexing process

setSummary(string $summary)

No description

setTags(array $tags)

No description

setTitle(string $title)

No description

setUrl(string $url)

No description

Details

at line 95
__construct(DocumentIndex $documentIndex)

SearchIndexRecord is always based on the respective document_index

Parameters

DocumentIndex $documentIndex

at line 296
SearchIndexContentRecord addLocalizedContent(string $locale, bool $overwriteExistingContentForLocale = true)

Adds an additional language variant of this document

Parameters

string $locale
bool $overwriteExistingContentForLocale

Return Value

SearchIndexContentRecord

at line 419
$this addMetaData(string $key, string $value, string $instanceId = null)

Allows to set a single key-value pair in the meta data

Parameters

string $key
string $value
string $instanceId

Return Value

$this

at line 168
SearchIndexRecord appendIndexContent(string $indexContent)

No description

Parameters

string $indexContent

Return Value

SearchIndexRecord

at line 207
int[]|string[] getAttachments()

No description

Return Value

int[]|string[]

at line 310
SearchIndexContentRecord[] getContentRecords()

Returns an array of localized Content objects containing all available translations for this document

Return Value

SearchIndexContentRecord[]

at line 377
int getCreatedAt()

Returns the initial document creation date as UNIX timestamp

Return Value

int

at line 341
DocumentIndex getDocumentIndex()

No description

Return Value

DocumentIndex

at line 362
int getGroupSecurityId()

No description

Return Value

int

at line 159
string getIndexContent()

Sets the content which shall be additionally be indexed. By default the title and summary are already indexed.

Return Value

string

at line 187
string getLocale()

No description

Return Value

string

at line 392
array getMetaData()

No description

Return Value

array

at line 224
array getNormalizedAttachments()

No description

Return Value

array

at line 348
int getPostId()

No description

Return Value

int

at line 355
int getPostType()

No description

Return Value

int

at line 284
getPreProcessingData(string $fieldId)

Used by Pre-Processing Logic to store / get additional data during indexing

Parameters

string $fieldId

at line 239
int getRelatedPostId()

No description

Return Value

int

at line 333
bool getRemoveFromIndex()

Returns true of this index record has been marked for index removal

Return Value

bool

at line 140
string getSummary()

No description

Return Value

string

at line 256
array getTags()

No description

Return Value

array

at line 107
string getTitle()

No description

Return Value

string

at line 385
int getUpdatedAt()

Returns the last document update date as UNIX timestamp

Return Value

int

at line 123
string getUrl()

No description

Return Value

string

at line 369
int getUserId()

No description

Return Value

int

at line 216
SearchIndexRecord setAttachments(int[]|string[] $attachments)

No description

Parameters

int[]|string[] $attachments

Return Value

SearchIndexRecord

at line 178
SearchIndexRecord setIndexContent(string $indexContent)

No description

Parameters

string $indexContent

Return Value

SearchIndexRecord

at line 196
SearchIndexRecord setLocale(string $locale)

No description

Parameters

string $locale

Return Value

SearchIndexRecord

at line 404
$this setMetaData(array $metaData, string $instanceId = null)

Set additional meta data which allows to filter the search results by additional faceted filters.

Parameters

array $metaData
string $instanceId

Return Value

$this

at line 232
void setNormalizedAttachment(string $key, string $normalizedAttachment)

No description

Parameters

string $key
string $normalizedAttachment

Return Value

void

at line 228
setNormalizedAttachments(array $normalizedAttachments)

No description

Parameters

array $normalizedAttachments

at line 275
setPreProcessingData(string $fieldId, $value)

Used by Pre-Processing Logic to store / get additional data during indexing

Parameters

string $fieldId
$value

at line 248
SearchIndexRecord setRelatedPostId(int $relatedPostId)

No description

Parameters

int $relatedPostId

Return Value

SearchIndexRecord

at line 324
SearchIndexRecord setRemoveFromIndex(bool $removeFromIndex = true)

Mark this Index Record for deletion during indexing process

Parameters

bool $removeFromIndex

Return Value

SearchIndexRecord

at line 149
SearchIndexRecord setSummary(string $summary)

No description

Parameters

string $summary

Return Value

SearchIndexRecord

at line 265
SearchIndexRecord setTags(array $tags)

No description

Parameters

array $tags

Return Value

SearchIndexRecord

at line 116
SearchIndexRecord setTitle(string $title)

No description

Parameters

string $title

Return Value

SearchIndexRecord

at line 132
SearchIndexRecord setUrl(string $url)

No description

Parameters

string $url

Return Value

SearchIndexRecord