PISS - Solr Search

The solr search plugin provides a SOLR search connector for content search in CONTENIDO.

The plugin requires the PHP extension for Solr. Otherwise its installation will be refused.

Classes

NameDescription
SolrIndexerThis class provides the functionality to index articles. It is called via CEC.
SolrSearcherAbstractAbstract class that Searcher-Classes should extend.
SolrSearcherSimpleThis class extends SolrSearcherAbstract and performs a Solr search. It is used by the SolrSearchModule class.
SolrSearchModule

This class implements basic behaviour for displaying search results. It can be called from a search result module.

SolrExceptionSolr related exception.
SolrWarningSolr related warning.

Instead of using SolrSearcherSimple and SolrSearchModule you can write your own classes that suit your needs.

Chains

NameDescription
Contenido.Action.con_saveart.AfterCallhandleStoringOfArticle, this function updating article in solr core
Contenido.Content.AfterStorehandleStoringOfContentEntry, this function store article content

Settings

Settings can be entered in the configuration panel of this plugins backend page which then will be stored as system settings.

Optionally they can also be given as (translatable) client settings which can especialy be usefull when there should be a single core for each client.

Area/TypeNameDescriptionDefaultScope
navigation_searchform_topsearch_result_idart 0SCGU
searchableidcats 1SCGU
solrsecureBoolean value indicating whether or not to connect in secure mode.n/aS
solrhostnameRequired. The hostname for the Solr server.n/aS
solrportRequired. The port number.n/aS
solrpathRequired. The path to solr.n/aS
solrwtThe name of the response writer e.g. xml, phpnative.n/aS
solrloginRequired. The username used for HTTP Authentication, if any.n/aS
solrpasswordRequired. The HTTP Authentication password.n/aS
solrproxy_host

The hostname for the proxy server, if any.

n/aS
solrproxy_portThe proxy port.n/aS
solrproxy_loginThe proxy username.n/aS
solrproxy_passwordThe proxy password.n/aS
solrtimeout

This is maximum time in seconds allowed for the http data transfer operation. Default is 30 seconds.

n/aS
solrssl_cert

File name to a PEM-formatted file containing the private key + private certificate (concatenated in that order). Please note the if the ssl_cert file only contains the private certificate, you have to specify a separate ssl_key file.

n/aS
solrssl_keyFile name to a PEM-formatted private key file only.n/aS
solrssl_keypassword

Password for private key. The ssl_keypassword option is required if the ssl_cert or ssl_key options are set.

n/aS
solrssl_cainfoName of file holding one or more CA certificates to verify peer with.n/aS
solrssl_capath

Name of directory holding multiple CA certificates to verify peer with.

n/aS

Features that might be implemented in the future:

Display core status

In order to display the core status a request like the following has to be send, as long as it cannot be done with the Solr extension:

<server>:8080/solr/admin/cores?action=STATUS

Reload a core

In order to display the core status a request like the following has to be send, as long as it cannot be done with the Solr extension:

<server>:8080/solr/admin/cores?action=RELOAD&core=contenido

Renaming cores

In order to rename a core a request like the following has to be send, as long as it cannot be done with the Solr extension:

<server>:8080/solr/admin/cores?action=RENAME&core=collection1&other=contenido