Class SolrIndexer
This class sends update requests to a Solr core. If the request failed an exception is thrown. This class allows handling of more than one article at once.
<server>:8080/solr/admin/cores?action=STATUS <server>:8080/solr/admin/cores?action=RENAME&core=collection1&other=contenido <server>:8080/solr/admin/cores?action=RELOAD&core=contenido
Package: Plugin\SearchSolr
Copyright: four for business AG
Author: marcus.gnass
Located at plugins/search_solr/classes/class.solr_indexer.php
Copyright: four for business AG
Author: marcus.gnass
Located at plugins/search_solr/classes/class.solr_indexer.php
public static
|
#
handleStoringOfArticle( array $newData, array $oldData )
CEC chain function for updating an article in the Solr core (index). |
public static
|
#
handleStoringOfContentEntry( array $articleIds )
CEC chain function for updating an article in the Solr core (index). |
public
|
#
__construct( array $articleIds )
Create client instance (connect to Apache Solr) and aggregate it. |
public
|
|
public
|
#
addArticles( )
If the current articles are indexable for each article a new index document will be created and filled with its content and eventually be added to the index. |
public
|
|
public
|
|
private
boolean
|
|
private
array
|
|
private
|
private
array
|
$_articleIds | array() |
#
IDs of articles to be updated / added / deleted. |
private
SolrClient
|
$_solrClient | NULL |