Help:CirrusSearch/es

Delete

CirrusSearch es una extensión de MediaWiki que utiliza Elasticsearch para proporcionar funciones mejoradas de búsqueda respecto de la búsqueda por defecto de MediaWiki. La Fundación Wikimedia utiliza CirrusSearch para todos los proyectos Wikimedia. Esta página describe las características de CirrusSearch. Si la página no resulve tus dudas, siéntete libre de preguntar en la página de discusión y alguien te responderá.

Para más información, visitar la extensión de MediaWiki Extensión:CirrusSearch (en inglés).

¿Cómo funciona?
Introduce frases y palabras clave, y pulsa "Introducir" o Return, o haz "clic" en el icono de la lupa, o en los botones de "Búsqueda" o "Ir". Si el título de una página coincide exactamente con la búsqueda introducida, se salta directamente a aquella página (con Return, o con el botón "Ir"). En caso contrario, se buscan todas las páginas en el wiki (con algunas restricciones, véase más adelante), y se presenta una lista de los artículos que contienen la palabra (o las palabras) buscadas, o un mensaje que informa de que ninguna página tiene todas las palabras clave y frases.

Si haces clic en el botón “” sin escribir nada, irás a 'Especial:Buscar' en donde aparecerán opciones de búsqueda extras (también disponibles desde cualquier lista de resultado de búsqueda)

En determinadso casos puede ser muy útil restringir la búsqueda a determinadas páginas (como por ejemplo, las $páginas de usuario namespace). Control el namespaces requieres para esta búsqueda.

Por default sólo el namespaces especificó en vuestro de ayuda será buscado. Logged-En los usuarios pueden cambiar sus preferencias para especificar el namespaces quieren búsqueda por default. Esto puede ser hecho por seleccionar y deselecting cajas en la ”sección” de búsqueda de preferencias de usuario.

¿Qué se ha mejorado?
CirrusSearch ofrece tres mejoras principales respecto a la herramienta predefinida de búsqueda de MediaWiki, a saber:


 * Mejor compatibilidad de búsquedas en idiomas diferentes.
 * Actualizaciones más rápidas al índice de búsquedas: así, las modificaciones en los artículos se reflejan en los resultados de las búsquedas más rápidamente.
 * Búsquedas en plantillas: el contenido de los artículos incrustados en plantillas ahora aparece en los resultados de las búsquedas.

¿Con qué frecuencia se actualiza el índice de búsqueda?
Las actualizaciones del índice de búsquedas tienen lugar prácticamente en tiempo real. Deberías poder hacer búsquedas referentes a los cambios que has realizado inmediatamente después de haberlos hecho. Los cambios realizados en plantillas deberían mostrarse en los artículos que incluyen esa plantilla en unos pocos minutos. Los cambios en las plantillas pasan a la cola de trabajo, por lo que el resultado puede variar. !!FUZZY!!Una edición "nula" del artículo (editar y guardar sin hacer cambio alguno) puede forzar que se muestren los cambios, pero si todo va bien, esto no debería ser necesario.

Sugerencias de búsqueda
Las sugerencias de búsqueda consigues cuándo tú escribe a la caja de búsqueda que gotas abajo páginas de candidato está ordenada por una medida áspera de calidad de artículo. Esto tiene en cuenta el número de incoming wikilinks, la medida de la página, el número de enlaces externos, el número de headings, y el número de redirige. Sugerencias de búsqueda pueden ser skipped y las consultas irán directamente a la página de resultados de la búsqueda. Añadir un tilde  antes de la consulta. Ejemplo "~Frida Kahlo". Las sugerencias de búsqueda todavía aparecerán, pero pegando el Introducir la llave en cualquier tiempo te tomará a la página de resultados de la búsqueda. ASCII/Acentos/diacritics plegando está girado encima para texto inglés, pero hay algunos formatting problemas con el resultado. Ve.

Búsqueda de texto lleno
Una "búsqueda de texto llena" es un "indexed búsqueda". Todas las páginas están almacenadas en el wiki base de datos, y todas las palabras en ellos están almacenadas en la base de datos de búsqueda, el cual es un índice  al texto lleno del wiki. Cada palabra visible es indexed a la lista de páginas donde está encontrado, así que un buscar una palabra es tan rápidamente tan mirando arriba de un solo-récord. Nota que el tagline no es separar del contenido real. Para ver el searchable el contenido para una página anexa ?action=cirrusdump al URL. Además, para cualesquier cambios en wording, el índice de búsqueda está actualizado dentro de segundos. Hay muchos índices del "texto lleno" del wiki para facilitar los muchos tipos de búsquedas necesitaron. El lleno wikitext es indexed muchas veces a muchos índices de propósito especial, cada cual parsing el wikitext en cualquier manera optimiza su uso. Índices de ejemplo incluyen: Hay soporte para docenas de lenguas, pero todas las lenguas están queridas. Hay una lista de actualmente lenguas soportadas en elasticsearch.org; ver su documentación encima contribuyendo para entregar peticiones o remiendos. CirrusSearch Optimizará vuestra consulta, y corrido lo. Los títulos resultantes son weighted por pertinencia, y fuertemente correo-procesado, 20 a la vez, para la página de resultados de la búsqueda. Por ejemplo las #fragmento son garnered del artículo, y plazos de búsqueda están destacados en negrita texto.
 * "Texto" auxiliar, incluye hatnotes, captions, ToC, y cualquier wikitext classed por un atributo de HTML class=searchaux.
 * "Ventaja-en" el texto es el wikitext entre la parte superior de la página y el primer encabezando.
 * Los "índices" de texto de la categoría los listados en el fondo.
 * Las plantillas son indexed. Si el transcluded palabras de un cambio de plantilla, entonces todas las páginas que transclude esté actualizado. (Esto puede tomar un tiempo largo que depende de un trabajo queue.) Si el subtemplates utilizó por un cambio de plantilla, el índice está actualizado.
 * El documento contenta aquello está almacenado en los Medios de comunicación/de Archivo namespace es ahora indexed. Los miles de formatos están reconocidos.

Resultados de búsqueda a menudo serán acompañados por varios informes preliminares. Estos incluyen  significas (deletreando corrección), y, cuándo ningún resultado  otherwise ser encontrado lo dirá ' eshowing resultados para (corrección de consulta) y ' esearch en cambio para (vuestra consulta).

Características de búsqueda también incluyen:


 * Ordenando sugerencias de navegación por el número de incoming enlaces.
 * Empezando con el tilde carácter  para inutilizar navegación y sugerencias de tal manera que también preserva página ranking.
 * Caracteres que emparejan listos por normalizar (o "plegable") no-caracteres de teclado a caracteres de teclado.* Palabras y frases que el partido está destacado en negrita en la página de resultados de la búsqueda. El highlighter es un cosmético analyzer, mientras la búsqueda-indexación analyzer de hecho encuentra la página, y estos no pueden ser 100% en sync, especialmente para regex. El highlighter puede emparejar más o menos con exactitud que el indexer.

Palabras, frases, y modifiers
El plazo de búsqueda básico es una palabra o una "frase en cita". La búsqueda reconoce una "palabra" para ser:


 * Una cuerda de dígitos
 * Una cuerda de letras
 * subwords Entre transiciones/de dígito de las letras, como en txt2regex
 * subwords Dentro de un compoundName utilizando camelCase

Una " " es una palabra que está ignorado (porque  es común, o para otras razones).Palabras de parón son raramente pedidas en CirrusSearch, excepto cuándo  son en clases seguras de frases, cuando explicó abajo. Unos partidos de plazo de búsqueda dados en contra contenido (rendered en la página). Para emparejar contra wikitext en cambio, uso el insource parámetro de búsqueda (Ve sección abajo). Cada parámetro de búsqueda tiene su índice propio, e interpretar su plazo dado en su manera propia.CirrusSearch Los parámetros no utilizan una manera compatible de manejar estos plazos de búsqueda.

Espaciando entre palabras, frases, parámetros, y entrada a parámetros, puede incluir casos generosos de whitespace y greyspace caracteres. "Greyspace Los caracteres" son todo los caracteres no alfanuméricos $caracteres. Una cuerda mixta de greyspace caracteres y whitespace caracteres, es "greyspace", y está tratado cuando uno frontera de palabra grande. Greyspace Es qué los índices están hechos y las consultas están interpretadas.El mismo analyzer utilizó a índice el wikitext es también utilizado para interpretar la consulta.

Dos excepciones son donde 1) un embedded:colon es una palabra (él siendo tratado como letra), y 2) un embedded coma, como en 1,2,3, está tratado como número. Greyspace Los caracteres son otherwise ignorados a no ser que, debido a sintaxis de consulta, pueden ser interpretados como modifier caracteres.

El modifiers es ~ * \? - " ! . Dependiendo de su placement en la sintaxis pueden aplicar a un plazo, un parámetro, o a una consulta entera. Palabra y frase modifiers es el wildcard, proximity, y búsquedas borrosas. Cada parámetro puede tener su propio modifiers, pero en general:


 * Un borroso-la palabra o búsqueda de frase borrosa pueden sufijo un tilde  carácter (y un número que dice el grado).
 * Un tilde  el carácter prefijó al primer plazo de unos resultados de búsqueda de garantías de consulta en vez de cualquier navegación posible.
 * Un wildcard el carácter dentro de una palabra puede ser un (huido) cuestión \? Marca para un carácter o un asterisco $carácter de asterisco para más.
 * Verdad-la lógica puede interpretar $y y $o, pero los parámetros pueden no.
 * Verdad-la lógica entiende $pizca o $exclamar prefijado a un plazo a invert el significado habitual del plazo de "emparejar" para "excluir".
 * Cita alrededor de las palabras marcan una "búsqueda de frase" exacta. Para parámetros son también necesitados para delimitar multi-entrada de palabra.
 * Stemming Es automático pero puede ser apagado utilizando una "frase exacta".

Una búsqueda de frase puede ser iniciada por varias pistas al motor de búsqueda. Cada método de dar pistas tiene un lado-efecto de cómo tolerant el emparejando de la secuencia de palabra será. Para greyspace, camelCase, o txt2número pistas: Una "búsqueda en cambio" el informe está provocado cuándo una palabra universalmente desconocida está ignorado en una frase.
 * Dado words-joined_by_greyspace(characters) o wordsJoinedByCamelCaseCharacters encuentra words joined by ... characters, en su bare formas o greyspace formas.
 * txt2number emparejará  o.
 * Palabras de parón están habilitadas para los casos de borde (en la periferia) de un espacio_gris o camelCase frase. Un ejemplo que utiliza $el, $de, y $un es que the_invisible_hand_of_a partidos.

Cada cual uno de los tipos siguientes de que emparejan frase contiene y ensancha el partido-tolerancias del anteriores un:
 * Una "frase exacta" "en cita" tolerará (partido con) greyspace. Dado $frase_exacta o "exact phrase" empareja.
 * Un greyspace_la frase inicia stemming y ' espalabra superior'' controles.
 * Dado CamelCase lo él además partido , en todo lowercase, porque CirrusSearch no es el caso sensible en emparejar.

Página ranking salva tú de escribir cita para una búsqueda de dos palabras. Sin cita una palabra-índice de par está utilizado en página-ranking, plus encuentra las dos palabras anywhere en la página.

Algunos parámetros interpretan greyspace frases, pero otros parámetros, gusta insource sólo interpretar la frase "habitual en cita".

Nota que todo stemming es el caso insensible.

Note how the "exact phrase" search interpreted the embedded:colon character as a letter, but not the embedded_underscore character. A similar event occurs with the comma, character inside a number.

Given, CirrusSearch, when in an "exact phrase" context, (which includes the insource parameter context), will not match  ,  , or  , but will then only match.

Otherwise, remember that for CirrusSearch words are letters, numbers, or a combination of the two, and case does not matter.

The common word search employs the space character and is aggressive with stemming, and when the same words are joined by greyspace characters or camelCase they are aggressive with phrases and subwords.

When common words like "of" or "the" are included in a greyspace-phrase, they are ignored, so as to match more aggressively.

A greyspace_phrase search term, or a camelCase, or a txt2number term, match the signified words interchangeably. You can use any of those three forms. Now camelcase matches camelCase because Search is not case sensitive, but camelCase matches camelcase because camelCase is more aggressive. Like the rest of Search, subword "words" are not case-sensitive. By comparison the "exact phrase" is greyspace oriented and ignores numeric or letter-case transitions, and stemming. "Quoted phrases" are not case sensitive.

From the table we can surmise that the basic search parser_function -"parser function" is the sum of the basic searches  and.

Making inquiries with numbers, we would find that: The star * wildcard matches a string of letters and digits within a rendered word, but never the beginning character. One or more characters, a percentage of the word, must precede the * character. The \? wildcard represents one letter or number; The *\? is also accepted, but \?* is not recognized.
 * Plan9 or Plan_9 matches any of:,  ,  ,  ,
 * "plan9" only matches  (case insensitive)
 * Plan*9 matches  or.
 * If the leading part is only letters then it will limit a match to a string of (zero of more) letters.
 * If only numbers, then it will limit a match to a sequence of (zero or more) numbers, including also ordinal letters (st, nd, rd), capital letters, or time abbreviations (am or pm); and it will match the entirety of (both sides of) a decimal numbers.
 * Otherwise the comma is considered part of one number, but the decimal point is considered a greyspace character, and will delimit two numbers.
 * Inside an "exact phrase" it matches stemming plus compounding.

El wildcards es para palabra básica, frase, y insource búsquedas, y también puede ser un alternativo a (algunos) adelantó regex búsquedas (cubiertos más tardíos).

Poniendo un tilde ~ carácter después de una palabra o la frase activa una búsqueda borrosa.
 * Para una frase está denominado un proximity búsqueda, porque proximal las palabras están toleradas a un aproximados más que frase exacta.
 * Por ejemplo, o12p partidos  os.
 * Para una palabra significa caracteres extras o cambiados caracteres.
 * Para una frase una búsqueda borrosa ' esquires un número entero que lo dice cuántas palabras extras para caber en, pero para una palabra una búsqueda borrosa puede tener una fracción decimal, defaulting'' a $palabra05 ( word~.5 ), donde como máximo dos letras pueden ser encontradas swapped, cambiados, o añadidos, pero nunca las primeras dos letras.
 * Para un proximity frase, un número grande puede ser utilizado, pero aquello es un "caro" (lento) búsqueda.
 * Para una palabra word~.1 es más borroso, y word~.9 es menos borroso, y word~1 no es borroso en absoluto.

Para el closeness valor necesario de emparejar en inverso (correcto a izquierdo) orden, cuenta y discard todas las palabras extras, entonces añadir dos veces la cuenta total de palabras restantes minus uno. (En otras palabras,, añade dos veces el número de segmentos). Para el lleno proximity algoritmo, ve Elasticsearch slop. Un explícito $y está requerido entre dos frases porque otherwise la dos "mención" "interior las marcas" están confundidas. Cita apagar stemming, "but appending"~ el tilde reactiva el stemming.

Insource
Insource searches can be used to find any one word rendered on a page, but it's made for finding any phrase you might find - including MediaWiki markup. This phrase completely ignores greyspace: insource: "state state autocollapse" matches. Insource complements itself. On the one hand it has full text search for any word in the wikitext, instantly. On the other hand it can process a regexp search for any string of characters. Regex scan all the textual characters in a given list of pages; they don't have a word index to speed things up, and the process is interrupted if it must run more than twenty seconds. Regex run last, so to limit needless character-level scanning, you advance it a list of pages (a search domain) selected by an indexed search added to the query as a "clause", and you do this to every single regex query. . Insource can play both roles, and the best candidate for insource:/arg/ is often insource: arg, where arg is the same.

The syntax for the regexp is insource: no space, and then /regexp/. (No other parameter disallows a space. All the parameters except insource:/regexp/ generously accept space after their colon.)

Insource indexed-search and regexp-search roles are similar in many respects: But indexed searches all ignore greyspace; wildcards searches do not match greyspace, so regex are the only way to find an exact string of any characters, for example a sequence of two spaces. Regex are an entirely different class of search tool that make matching a literal string in a regexp exact string search, a basic, easy search. Advanced regex are an entirely different endeavor than matching a literal string. See below.
 * Both search wikitext only.
 * Neither finds things "sourced" by a transclusion.
 * Neither does stemmed, fuzzy, or proximity searches.
 * Both want the fewest results, and both work faster when accompanied by another clause.

Prefix and namespace
For Search, a namespace term functions to specify the initial search domain. Instead of searching the entire wiki, the default is the main namespace (mainspace).

Only one namespace name can be set from the search box query. It is either the first term or in the last term, in a prefix parameter.

Two or more namespaces may be searched from the Advanced pane of the search bar found on the top of every search results page, Special:Search. Your search domain, as a profile of namespaces, can be set here (without going to the user preferences page). The namespaces list will then present itself on the first page of future search results to indicate the search domain of the search results. To unset this, select the default namespace (shown in parentheses), select "Remember", and press Search.

The search bar graphically sets and indicates a search domain. "Content pages" (mainspace), "Multimedia" (File), "Everything" (all plus File), "Translations", etc., are hyperlinks that can activate the query in that domain, and then indicate this by going inactive (dark). But the query will override the search bar. When a namespace or prefix is used in the query the search bar activations and indications may be misleading, so the search bar and the search box are mutually exclusive (not complementary) ways to set the search domain.

A namespace term overrides the search bar, and a prefix term overrides a namespace.

Enter a namespace name, or enter, or enter a     colon for mainspace. All does not include the File namespace. File includes media content held at Commons such as PDF, which are all indexed and searchable. When File is involved, a namespace modifier  has an effect, otherwise it is ignored. Namespace aliases are accepted. As with search parameters, local and all must be lowercase. Namespaces names are case insensitive.

The prefix: parameter matches any number of first-characters of all pagenames in one namespace. When the first letters match a namespace name and colon, the search domain changes. Given a namespace only, prefix will match all its pagenames. Given one character only, it cannot be - dash or ' quote or " double quote. The last character cannot be a colon. For pagenames that match, their subpage titles match by definition. The prefix parameter does not allow a space before a namespace, but allows whitespace before a pagename.

The prefix parameter goes at the end so that pagename characters may contain " quotation marks.

The Translate extension creates a sort of "language namespace", of translated versions of a page. But unlike namespace or prefix, which create the initial search domain, the inlanguage parameter is a filter of it. (See the next section.)

Filters
A filter can have multiple instances, and negated instances, and it can run as a standalone filtering a search domain. A query is formed as terms that filter a search domain. A namespace or a prefix term is not a filter because a namespace will not run standalone, and a prefix will not negate.

Adding another word, phrase, or parameter filters more. A highly refined search result may have very many Y/N filters when every page in the results will be addressed. (In this case ranking is largely irrelevant.) Filtering applies critically to adding a regex term; you want as few pages as possible before adding a regex (because it can never have a prepared index for its search).

The search parameters below are filters. Insource (covered above) is also a filter, but insource:/regexp/ is not a filter. Filters and all other search parameters are lowercase. (Namespaces are an exception, being case insensitive.)

Intitle and incategory
Word and phrase searches match in a title and match in the category box on bottom of the page. But with these parameters you can select titles only or category only.

Intitle and incategory are old search parameters. Incategory no longer searches any subcategory automatically, but you can now add multiple category pagenames manually. To get the search parameter deepcat, to automatically add up to 70 subcategories onto an incategory parameter, incategory:category1|category2|...|category70 , you can add a line to your Custom JavaScript.
 * cow*
 * Find articles whose title or text contains words that start with cow
 * intitle:foo
 * Find articles whose title contains foo. Stemming is enabled for foo.
 * intitle:"fine line"
 * Find articles whose title contains fine line. Stemming is disabled.
 * intitle:foo bar
 * Find articles whose title contains foo and whose title or text contains bar.
 * -intitle:foo bar
 * Find articles whose title does not contain foo and whose title or text contains bar.
 * incategory:Music
 * Find articles that are in Category:Music
 * incategory:"music history"
 * Find articles that are in Category:Music_history
 * incategory:"musicals" incategory:"1920"
 * Find articles that are in both Category:Musicals and Category:1920
 * -incategory:"musicals" incategory:"1920"
 * Find articles that are not in Category:Musicals but are in Category:1920

Linksto
Linksto finds wikilinks to a given name, not links to content. The input is the canonical, case sensitive, page name. It must match the title line of the content page, exactly, before any title modifications of the letter-case. (It must match its { {FULLPAGENAME}}, e.g. .)

Linksto does not find redirects. It only finds [ [wikilinks]], even when they are made by a template. It does not find a link made by a URL, even if that URL is an internal wiki link.

To find all wikilinks to a "Help:Cirrus Search", if "Help:Searching" and "H:S" are redirects to it:
 * 1) linksto: "Help:Cirrus Search"
 * 2) linksto: Help:Searching
 * 3) linksto: H:S

finds articles that mention "CirrusSearch" but not in a wikilink.

Hastemplate
You can specify template usage with. Input the canonical pagename to find all usage of the template, but use any of its redirect pagenames finds just that naming. Namespace aliases are accepted, capitalization is entirely ignored, and redirects are found, all in one name-search. (Compare boost-template no default namespace; linksto no namespace aliases, case-sensitive, no redirects; intitle no redirects.)

Hastemplate finds secondary (or meta-template) usage on a page: it searches the post-expansion inclusion. This is the same philosophy as for words and phrases from a template, but here it's for templates from a template. The page will be listed as having that content even though that content is not seen in the wikitext.


 * hastemplate: "quality image", finds "Template:Quality image" usage in your default search domain (namespaces).
 * : hastemplate: portal:contents/tocnavbar, finds mainspace usage of a "Contents/TOCnavbar" template in the Portal namespace.

For installations with the Translate extension, hastemplate searches get interference wherever Template:Translatable template name wraps the template name of a translatable template. Use insource instead.

Inlanguage
For installations with the Translate extension, inlanguage is important for highly refined searches and page counts.


 * inlanguage: language code

will produce search results in that language only.

For example


 * to count all Japanese pages on the wiki
 * all: inlanguage: ja


 * to filter out German and Spanish pages in the Help namespace
 * help: -inlanguage: de -inlanguage: es


 * to ignore Translate, and where English is the base language, add
 * inlanguage:en

contentmodel
The contentmodel: keyword allows to limit the search to pages of specific content model. E.g.:


 * To see only JSON pages:
 * contentmodel:json

Page weighting
Weighting determines snippet, suggestions, and page relevance. The normal weight is one. Additional weighting is given through multipliers.

If the query is just words, pages that match them in order are given a boost. If you add any explicit phrases to your search, or for certain other additions, this "prefer phrase" feature is not applied.

Morelike
The morelike: query works by choosing a set of words in the input articles and run a query with the chosen words. You can tune the way it works by adding the following parameters to the search results URL: These settings can be made persistent by overriding  in Special:MyLanguage/Help:System message.
 * morelike:page name 1|page name 2|...|page name n
 * Find articles whose text is most similar to the text of the given articles.
 * morelike:wasp|bee|ant
 * Find articles about stinging insects.
 * morelike:template:search|template:regex|template:usage
 * Find templates about regex searching for template usage on the wiki.
 * cirrusMltMinDocFreq : Minimum number of documents (per shard) that need a term for it to be considered.
 * cirrusMltMaxDocFreq : Maximum number of documents (per shard) that have a term for it to be considered.
 * cirrusMltMaxQueryTerms : Maximum number of terms to be considered.
 * cirrusMltMinTermFreq : Minimum number of times the term appears in the input to doc to be considered. For small fields ( title ) this value should be 1.
 * cirrusMltMinWordLength : Minimal length of a term to be considered. Defaults to 0.
 * cirrusMltMaxWordLength : The maximum word length above which words will be ignored. Defaults to unbounded (0).
 * cirrusMltFields (comma separated list of values): These are the fields to use. Allowed fields are title, text , auxiliary_text , opening_text , headings and all.
 * cirrusMltUseFields ( | ): use only the field data. Defaults to : the system will extract the content of the   field to build the query.
 * cirrusMltPercentTermsToMatch : The percentage of terms to match on. Defaults to 0.3 (30 percent).
 * Example:

Prefer-recent
Adding prefer-recent: anywhere in the query gives recently edited articles a slightly larger than normal boost in the page-ranking rules.

It defaults to boost only 60% of the score, in a large, 160 day window of time, which can be entered in the query as prefer-recent:0.6,160. This plays well with other page ranking rules, and is intended for most searches.

You can manipulate the rules: prefer-recent:boost,recent Technically "boost" is the proportion of score to scale, and "recent" is the half life in days. The boost is more than the usual multiplier, it is an exponential boost. The factor used in the exponent is the time since the last edit.

For example
 * prefer-recent:,7

Pages older than 7 days are boosted half as much, and pages older than 14 days are boosted half as much again, and so on.

For a simple "sort by date" in highly refined search results, where page ranking and boosting are largely meaningless, just boost the entire score:
 * prefer-recent:1,7 (weeks)
 * prefer-recent:1,1 (days)
 * prefer-recent:1,0.0007 (minutes)
 * prefer-recent:1,0.0001 (8.64 seconds)
 * prefer-recent:1,0.00001 (seconds)

Boost-templates
You can boost pages' scores based on what templates they contain. This can be done directly in the search via  or you can set the default for all searches via the new   message. replaces the contents of  if the former is specified. The syntax is a bit funky but was chosen for simplicity. Some examples:


 * File:boost-templates:"Template:Quality Image|200%" incategory:china
 * Find files in the China category sorting quality images first.


 * File:boost-templates:"Template:Quality Image|200% Template:Low Quality|50%" incategory:china
 * Find files in the China category sorting quality images first and low quality images last.


 * File:boost-templates:"Template:Quality Image|200% Template:Low Quality|50%" popcorn
 * Find files about popcorn sorting quality images first and low quality images last. Remember that through the use of the  message this can be reduced to just.

Don't try to add decimal points to the percentages. They don't work and search scoring is such that they are unlikely to matter much.

A word of warning about : if you add really really big or small percentages they can poison the full text scoring. Think, for example, if enwiki boosted featured articles by a million percent. Then searches for terms mentioned in featured articles would find the featured articles before exact title matches of the terms. Phrase matching would be similarly blown away so a search like  would find a featured article with those words scattered throughout it instead of the article for Brave New World.

Regular expression searches
A basic indexed-search finds words rendered visible on a page. Hyphenation and punctuation marks and bracketing, slash and other math and computing symbols, are merely boundaries for the words. It is not possible to include them in an indexed search.

These return much much faster when you limit the regexp search-domain to the results of one or more index-based searches.

Warning: Do not run a bare insource:/regexp/ search. It will probably timeout after 20 seconds anyway, while blocking responsible users.

An "exact string" regexp search is a basic search; it will simply "quote" the entire regexp, or "backslash-escape" all non-alphanumeric characters in the string. All regexp searches also require that the user develop a simple filter to generate the search domain for the regex engine to search:
 * insource:"debian.reproducible.net" insource: / debian\.reproducible\.net / 
 * insource:"c:\program files (x86)" insource: / C\:\\Program Files \(x86\) /i 
 * insource:"{ {template}}" insource: / "{ {template}}<\/tag>" /
 * insource:"[ [title|link label]]'s" insource: / "[ [title|link label]]'s" /
 * insource: / regexp / prefix:{ {FULLPAGENAME}}

The last example works from a link on a page, but { {FULLPAGENAME}} doesn't function in the search box.

For example: Special:Search/insource:/regex/ prefix: finds the term regex on this page.

A query with no namespace specified and no prefix specified searches your default search domain, (settable on any search-results page, i.e. at Special:Search). Some users keep their default search domain at "all namespaces", i.e. the entire wiki. On a large wiki if this user does a bare regexp search it will probably fail, incurring an HTML timeout, before completing the search.

A regex search actually scours each page in the search domain character-by character. By contrast, an indexed search actually queries a few records from a database separately maintained from the wiki database, and provides nearly instant results. So when using using an insource:// (a regexp of any kind), consider creating one the other search terms that will limit the regex search domain as much as possible. There are many search terms that use an index and so instantly provide a more refined search domain for the /regexp/. In order of general effectiveness: To test a bare regexp query you can create a page with test patterns, and then use the prefix parameter with that fullpagename. The match will be highlighted. It searches that page (in the database) and its subpages.
 * insource:"" with quotation marks, duplicating the regexp except without the slashes or escape characters, is ideal.
 * intitle, incategory, and linksto are excellent filters.
 * hastemplate: is a very good filter.
 * "word1 word2 word3", with or without the quotation marks, are good.
 * namespace: is practically useless, but may enable a slow regexp search to complete.

Search terms that do not increase the efficiency of a regexp search are the page-scoring operators: morelike, boost-template, and prefer-recent.

Metacharacters
This section covers how to escape metacharacters used in rexexp searches For the actual meaning of the metacharacters see the explanation of the syntax.

For example: Refining with an exact string. You can start out intending an exact string search, but keep in mind: There are two ways to escape metacharacters. They are both useful at times, and sometimes concatenated side-by-side in the escaping of a string. Double-quotes escaping using insource:/"regexp"/ is an easy way to search for many kinds of strings, but you can't backslash-escape anything inside a double-quoted escape. Backslash-escape using insource:/regexp/ allows escaping the " and / delimiters, but requires taking into account metacharacters, and escaping any: The simplest algorithm to create the basic string-finding expression using insource:/"regexp"/, need not take metacharacters into account except for the " and / characters:
 * to search a namespace, gauge the number of pages with a single term that is a namespace. This will list the number of pages in that namespace.
 * starting out to find again what you may have seen, like "wiki-link" or "(trans[in]clusion)" start with namespace and insource filters.
 * refinining an ongoing search process with what you want to see, like "2 + 2 = 4", or "site.org" This is ideally the best use of regex, because it adds it as a single regexp term while refining a search, the limited number of pages the regexp must crawl is can be seen.
 * regex only search the wikitext not the rendered text, so there are some differences around the markup, and even the number of space characters must match precisely.
 * You are obligated to supply an accompanying filter.
 * You must learn how to escape regex metacharacters.
 * Backslash-escape one of them \char. The insource:/regexp/ uses slashes to delimit the regexp. Giving /reg/exp/ is ambiguous, so you must write /reg\/exp/.
 * Put a string of them in double quotes "string". Because escaping a character can't hurt, you can escape any character along with any possible metacharacters in there. Escaping with quotes is cleaner.
 * You can't mix methods, but you can concatenate them.
 * instead of
 * is as good as
 * But  always.
 * And .  It finds the   literally, which is not the   you probably wanted.
 * To match a  delimiter character use.
 * To match a  delimiter character use.
 * The escaped metacharacters would be.
 * The equivalent expression escaped with double-quotes is.
 * 1) Write   out. (The /" delimiters "/ are not shown.)
 * 2) Replace   with   (previous double-quote: stop, concatenate, quote restart).
 * 3) Replace   with   (stop, concatenate, start).
 * 4) You get , showing concatenation of the two methods.

The square-bracket notation for creating your own character-class also escapes its metacharacters. To target a literal right square bracket in your character-class pattern, it must be backslash escaped, otherwise it can be interpreted as the closing delimiter of the character-class pattern definition. The first position of a character class will also escape the right square bracket. Inside the delimiting square brackets of a character class, the dash character also has special meaning (range) but it too can be included literally in the class the same way as the right square bracket can. For example both of these patterns target a character that is either a dash or a right square bracket or a dot:  or.

For general examples using metacharacters: There are some notable differences from standard regex metacharacters:
 * insource:"2+2=4" insource:/"2+2=4"/ matches "2 + 2 = 4", with zero spaces between the characters.
 * insource:"2 + 2 = 4" insource:/2 ?\+ ?2 ?= ?4\./ match with zero or one space in between. The equals = sign is not a metacharacter, but the plus + sign is.
 * insource:"[ [link|2\3?]]\" insource:/"[ [link|2\3?]]< "\/" tag>"/.
 * The dot . metacharacter stands for any character including a newline, so .* matches across lines.
 * The number # sign means something, and must be escaped.
 * The ^ and $ are not needed. Like "grep" (global per line, regular expression, print each line), each insource:// is a "global per document, regular expression, search-results-list each document" per document.
 * support a multi-digit numeric range like [0-9] does, but without regard to the number of character positions, or the range in each position, so <9-10> works, and even <1-111> works.

Advanced example
For example, using metacharacters to find the usage of a template called Val having, inside the template call, an unnamed parameter containing a possibly signed, three to four digit number, possibly surrounded by space characters, AND on the same page, inside a template Val call, a named argument having any allowable spaces around it, (it could be the same template call, or a separate one):



Note that the = sign in "fmt commas" is not needed but that adding it would not change the search results. It is fast because it uses two filters so that every page the regexp crawls has the highest possible potential.

bounded
You can limit search to pages identified as being near some specified geographic coordinates. The coordinates can either be specified as a, pair, or by providing a page title from which to source the coordinates. A distance to limit the search to can be prepended if desired. Ejemplos:


 * neartitle:"San Francisco"
 * neartitle:"100km,San Francisco"
 * nearcoord:37.77666667,-122.39
 * nearcoord:42km,37.77666667,-122.39

boosted
You can alternatively increase the score of pages within a specified geographic area. The syntax is the same as bounded search, but with boost- prepended to the keyword. This effectively doubles the score for pages within the search range, giving a better chance for nearby search results to be near the top.


 * boost-neartitle:"San Francisco"
 * boost-neartitle:"100km,San Francisco"
 * boost-nearcoord:37.77666667,-122.39
 * boost-nearcoord:42km,37.77666667,-122.39

File properties search
Since MediaWiki 1.28, CirrusSearch supports indexing and searching of properties of files in the  namespace. This includes:
 * file media type
 * MIME type
 * size
 * width & height
 * resolution
 * bit depth for files that support these

filetype
Searching for file type allows to retrieve files according to their classification, such as office documents, videos, raster images, vector images, etc. The following types currently exist:



This list may be extended in the future. See also  constants in.

The syntax of the search is: filetype:{type}. Example:

filetype:video - looks for all videos

The filetype search is not case-sensitive.

filemime
Matches file MIME type. The syntax is:

filemime:{MIMEtype} - look for files of this MIME type

The argument can be quoted to specify exact match. Without quotes, partial matches to components of MIME type will be accepted too.

Examples:

filemime:"image/png" - look for files with MIME type exactly

filemime:pdf - look for all PDF documents

The MIME type search is not case sensitive.

filesize
Search for file of given size, in kilobytes (kilobyte means 1024 bytes). The syntax is:

filesize:{number} or filesize:>{number} - file with size at least given number

filesize:<{number} - file with size no more than given number

filesize:{number},{number} - file with size between given numbers

Examples:

filesize:>20 or filesize:20 - files 20KB and bigger

filesize:<1024 - files smaller than 1MB

filesize:100,500 - files with sizes between 100KB and 500KB

File measures
It is possible to search for specific file measures: width, height, resolution (which is defined as square root of height × width), and bit depth. Not all files may have these properties. The syntax is:

{measure}:{number} - file with measure that equals to given number

{measure}:>{number} - file with measure that is at least given number

{measure}:<{number} - file with measure that is no more than given number

{measure}:{number},{number} - file with measure that is between given numbers

Where  can be:

filew or filewidth - file width

fileh or fileheight - file height

fileres - file resolution (see above)

filebits - file bit depth

Examples:

filew:>800 fileh:>600 - files that are at least 800x600 pixels in size

filebits:16 - files with 16-bit color depth

fileheight:100,500 - file between 100 and 500 pixels high

Véase también

 * Completion Suggester - the incremental search feature of CirrusSearch
 * See Search/Old for more on the development and debut of of CirrusSearch.
 * See Help:Searching for MWSearch, used by the many wikis that don't have a search extension.
 * See Help:Searching for MWSearch, used by the many wikis that don't have a search extension.