ElasticSearchAdapter
class ElasticSearchAdapter implements SearchAdapterInterface
Elastic Search Adapter Uses an Elastic Search Server for indexing and search operations in XELOS
Traits
Properties
SearchController | $mod |
Methods
Create Index Structure
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html
No description
Returns all found file extensions of all attachments of SearchIndexRecord.
Returns the fulltext content of all attachments of SearchIndexRecord.
Returns a combined hash string of all file contents of the attachments of SearchIndexRecord.
Returns a connected Elastic Search Client Object
No description
Returns true if the index schema is uptodate, false if not.
No description
Used during Module Transition to allow a partial move to new Adapter Design
Mass Update to update a few search index attributes for many documents at once This command will not create new Index entries but only update existing ones
Details
at line 462
_create_index()
Create Index Structure
at line 530
string|null
_reindex($oldIndex, $newIndex)
at line 61
addToIndex(SearchIndexRecord $searchIndexRecord)
No description
at line 362
cleanIndex()
No description
in
AttachmentTrait at line 47
protected array
getAttachmentFileExtensions(SearchIndexRecord $searchIndexRecord)
Returns all found file extensions of all attachments of SearchIndexRecord.
Returns empty array if there are no attachments.
in
AttachmentTrait at line 18
protected string
getAttachmentFulltextContent(SearchIndexRecord $searchIndexRecord)
Returns the fulltext content of all attachments of SearchIndexRecord.
Returns empty string if there are no attachments.
in
AttachmentTrait at line 73
protected string
getAttachmentsHash(SearchIndexRecord $searchIndexRecord)
Returns a combined hash string of all file contents of the attachments of SearchIndexRecord.
Returns empty string if there are no attachments.
at line 382
Client
getElasticSearchClient()
Returns a connected Elastic Search Client Object
at line 188
array
getFromIndex(DocumentIndex $DocumentIndex)
No description
at line 231
array
getIndexInfo()
No description
at line 573
array
getIndexSchemaStatus()
Returns true if the index schema is uptodate, false if not.
at line 814
getSearchUpdateDSL(SearchUpdateRecord $searchUpdateRecord)
No description
at line 150
removeFromIndex(DocumentIndex $DocumentIndex)
No description
at line 209
search(array $query, array $options = [])
No description
at line 224
setMod($mod)
Used during Module Transition to allow a partial move to new Adapter Design
in
BulkOperationsTrait at line 20
updateDocumentsByCallback(array $documentIds, callable $callback, $requiredFields = ['_id', 'meta_data'])
Mass Update to update a few search index attributes for many documents at once This command will not create new Index entries but only update existing ones