class AbstractSolarium (View source)

Class AbstractSolarium

Constants

TYPE_DISCRIMINATOR

Properties

static $availableLocalizedTextFields
protected Client $client
protected bool $indexed
protected DocumentInterface $document
protected Logger $logger

Methods

boolean|Result
indexAndCommit()

Index current nodeSource and commit after.

Result
updateAndCommit()

Update current nodeSource document and commit after.

update(Query $update)

Update current nodeSource document with existing update.

boolean
remove(Query $update)

Remove current document from SearchEngine index.

removeAndCommit()

Remove current Solr document and commit after.

cleanAndCommit()

Remove any document linked to current node-source and commit after.

boolean
index()

Index current document with entity data.

DocumentInterface
getDocument()

No description

$this
setDocument(DocumentInterface $document) deprecated

No description

$this
createEmptyDocument(Query $update)

No description

clean(Query $update)

No description

boolean
getDocumentFromIndex()

No description

array
getFieldsAssoc()

Get a key/value array representation of current indexed object.

Details

boolean|Result indexAndCommit()

Index current nodeSource and commit after.

Use this method only when you need to index single NodeSources.

Return Value

boolean|Result

Result updateAndCommit()

Update current nodeSource document and commit after.

Use this method only when you need to re-index a single NodeSources.

Return Value

Result

update(Query $update)

Update current nodeSource document with existing update.

Use this method only when you need to re-index bulk NodeSources.

Parameters

Query $update

boolean remove(Query $update)

Remove current document from SearchEngine index.

Parameters

Query $update

Return Value

boolean

Exceptions

RuntimeException If no document is available.

removeAndCommit()

Remove current Solr document and commit after.

Use this method only when you need to remove a single NodeSources.

cleanAndCommit()

Remove any document linked to current node-source and commit after.

Use this method only when you need to remove a single NodeSources.

boolean index()

Index current document with entity data.

Return Value

boolean

Exceptions

RuntimeException If no document is available.

DocumentInterface getDocument()

Return Value

DocumentInterface

$this setDocument(DocumentInterface $document) deprecated

deprecated Use createEmptyDocument instead of set an empty Solr document.

Parameters

DocumentInterface $document

Return Value

$this

$this createEmptyDocument(Query $update)

Parameters

Query $update

Return Value

$this

abstract clean(Query $update)

Parameters

Query $update

abstract boolean getDocumentFromIndex()

Return Value

boolean

abstract protected array getFieldsAssoc()

Get a key/value array representation of current indexed object.

Return Value

array

Exceptions

Exception