Open main menu

Extension:CirrusSearch/es

This page is a translated version of the page Extension:CirrusSearch and the translation is 14% complete.

Other languages:
English • ‎español • ‎русский • ‎فارسی • ‎ភាសាខ្មែរ • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
CirrusSearch
Release status: estable
Implementación Search, API, Hook
Descripción Implements searching for MediaWiki using Elasticsearch
Autor(es) Nik Everett, Chad Horohoe, Erik Bernhardson
Última versión continuous updates
Política de compatibilidad Maestro
MediaWiki 1.23+
PHP 5.4+
Cambios de la base de datos No
Licencia GNU General Public License 2.0 or later
Descarga
README
Parámetros
  • $wgCirrusSearchServers
  • $wgCirrusSearchMaxRetries
  • $wgCirrusSearchSoftCommitTimeout
  • $wgCirrusSearchHardCommitTimeout
  • $wgCirrusSearchHardCommitMaxPendingDocs
  • $wgCirrusSearchCacheResultTime
  • $wgCirrusSearchCacheCleanupThread
  • $wgCirrusSearchFilterCacheSize
  • $wgCirrusSearchFilterCacheAutowarmCount
  • $wgCirrusSearchQueryResultCacheSize
  • $wgCirrusSearchQueryResultCacheAutowarmCount
  • $wgCirrusSearchDocumentCacheSize
  • many others
Hooks que usa
AfterImportPage
APIAfterExecute
ApiBeforeMain
ArticleDelete
ArticleDeleteComplete
ArticleRevisionVisibilitySet
BeforeInitialize
GetBetaFeaturePreferences
GetPreferences
LinksUpdateComplete
MediaWikiServices
ResourceLoaderGetConfigVars
ShowSearchHitTitle
SoftwareInfo
SpecialSearchResults
SpecialSearchResultsAppend
TitleMove
TitleMoveComplete
UnitTestsList
UserGetDefaultOptions
CirrusSearchBuildDocumentFinishBatch
CirrusSearchBuildDocumentLinks
Translate the CirrusSearch extension if it is available at translatewiki.net
Verificar uso y versión de la matriz.
Vagrant role cirrussearch
Asuntos Tareas abiertas · Reportar un bug

The CirrusSearch extension implements searching for MediaWiki using Elasticsearch.

See Help:CirrusSearch for documentation.

Contents

Project goals

  • No weird dependencies that make this difficult to install
    • The only dependencies should be pure-PHP MediaWiki extensions and Elasticsearch itself
  • Provide a near-real-time search index for wiki pages that's extendable by other MediaWiki extensions
  • Provide all of the query options MWSearch has given users, and more

Dependencies

PHP and cURL
Elasticsearch
  • MediaWiki 1.28.x requires ElasticSearch 2.x.
  • MediaWiki 1.29.x and 1.30.x require ElasticSearch 5.3.x or 5.4.x.
  • MediaWiki 1.31.x and 1.32.x require ElasticSearch 5.5.x or 5.6.x.
  • MediaWiki 1.33.x requires ElasticSearch 6.5.x.
Elastica
  • Elastica is a PHP library to talk to Elasticsearch. Install Elastica per the instructions below.

Installation

Elastica

  • Descarga y extrae los archivos en el directorio «Elastica» dentro del directorio extensions/ existente.
  • Ejecuta Composer para instalar las dependencias de PHP usando composer install --no-dev en el directorio de la extensión. (ver T173141 para complicaciones potenciales)
  • Añade el siguiente código a tu LocalSettings.php (preferiblemente al final):
    wfLoadExtension( 'Elastica' );
    
  •   Listo – Navega a Special:Version en tu wiki para verificar que la apariencia se haya instalado correctamente.

Para quienes usan MediaWiki 1.24 o versiones anteriores:

Estas instrucciones describen la nueva forma de instalar extensiones usando wfLoadExtension(). Si necesitas instalar esta extensión en versiones anteriores (MediaWiki 1.24 y anteriores), debes usar lo siguiente en lugar de wfLoadExtension( 'Elastica' );:

require_once "$IP/extensions/Elastica/Elastica.php";

CirrusSearch

  • Descarga y extrae los archivos en el directorio «CirrusSearch» dentro del directorio extensions/ existente.
  • Añade el siguiente código a tu LocalSettings.php (preferiblemente al final):
    require_once "$IP/extensions/CirrusSearch/CirrusSearch.php";
    
  • Now follow the setup instructions in the CirrusSearch README delivered with your extension i.e. $IP/extensions/CirrusSearch/README. Note that all info in it might not apply to your version of the extension, especially the version of Elasticsearch supported.
  • Configure as required.
  •   Listo – Navega a Special:Version en tu wiki para verificar que la apariencia se haya instalado correctamente.

Upgrading

Please follow the upgrade instructions in the CirrusSearch UPGRADE file.

Configuration

The configuration options of CirrusSearch are documented at the docs/settings.txt file, and also in the CirrusSearch.php file.

See also documentation on CirrusSearch configuration profiles.

Hooks

CirrusSearch extension defines a number of hooks that other extensions can make use of to extend the core schema and modify documents. The following hooks are available:

API

CirrusSearch features can be used in API queries. A few examples and queries:

Véase también