Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • Solr
  • SolrIndexer
  • SolrSearcherAbstract
  • SolrSearcherSimple
  • SolrSearchModule

Exceptions

  • SolrException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

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
Methods summary
public static
# handleStoringOfArticle( array $newData, array $oldData )

CEC chain function for updating an article in the Solr core (index).

CEC chain function for updating an article in the Solr core (index).

This function is intended to be called after storing an article. This function will delete and eventually add the given article from/to the SOLR index. Adding will only be performed when the article should be indexed. Removal will always be performed, even when the article is not indexable, but it might have been indexed before!

include.con_editcontent.php

Parameters

$newData
integer
$idartlang of article to be updated
$oldData
public static
# handleStoringOfContentEntry( array $articleIds )

CEC chain function for updating an article in the Solr core (index).

CEC chain function for updating an article in the Solr core (index).

This function is intended to be called after storing an article. This function will delete and eventually add the given article from/to the SOLR index. Adding will only be performed when the article should be indexed. Removal will always be performed, even when the article is not indexable, but it might have been indexed before!

include.con_editcontent.php

Parameters

$articleIds
integer
$idartlang of article to be updated
public
# __construct( array $articleIds )

Create client instance (connect to Apache Solr) and aggregate it.

Create client instance (connect to Apache Solr) and aggregate it.

Parameters

$articleIds
array
$articleIds IDs of articles to be handled
public
# __destruct( )

Destroy aggregated client instance.

Destroy aggregated client instance.

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.

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.

Throws

cException
if Solr add request failed
public
# deleteArticles( )

Throws

SolrClientException
if Solr delete request failed
public
# updateArticles( )

Throws

cException
if Solr delete request failed
private boolean
# _isIndexable( integer $idartlang )

An article is indexable if it is online and searchable.

An article is indexable if it is online and searchable.

Articles that are hidden due to a protected category are indexable. The searcher is responsible for making sure these aticles are only displayed to privileged users.

Parameters

$idartlang
integer
$idartlang of article to be checked

Returns

boolean
private array
# _getContent( integer $idartlang )

Parameters

$idartlang
integer
$idartlang of article to be read

Returns

array
private
# _checkResponse( SolrResponse $solrResponse, mixed $msg = 'Solr update request failed' )

Parameters

$solrResponse
SolrResponse
$solrResponse
$msg

Throws

cException
if Solr update request failed
Properties summary
private array $_articleIds array()
#

IDs of articles to be updated / added / deleted.

IDs of articles to be updated / added / deleted.

private SolrClient $_solrClient NULL
#
CMS CONTENIDO 4.9.5 API documentation generated by ApiGen 2.8.0