Help:CirrusSearch/pl

CirrusSearch jest nowym silnikiem wyszukiwania w MediaWiki. Zawiera kluczowe usprawnienia w stosunku do starszego silnika, LuceneSearch. Ta strona opisuje funkcje, które zostały dodane lub zmienione w porównaniu do starszych rozwiązań.

Najczęściej zadawane pytania
Jeżeli nie ma tutaj odpowiedzi na twoje pytanie, zapytaj na stronie dyskusji, a ktoś na nie odpowie.

Co zostało ulepszone?
Nowa wyszukiwarka oferuje trzy istotne ulepszenia w stosunku do starej wyszukiwarki, są to:


 * Lepsza obsługa wyszukiwania w różnych językach.
 * Szybsze aktualizacje indeksu wyszukiwania, znaczące zmiany na stronach zostają szybciej uwzględnione w wynikach wyszukiwania.
 * Expanding templates, meaning that all content from a template is now reflected in search results.

Aktualizacje
Aktualizacje indeksu wyszukiwania są wykonywane niemal w czasie rzeczywistym. Użytkownik powinien móc wyszukać swoje zmiany tuż po ich dokonaniu. Zmiany w szablonach powinny być widoczne na stronach wykorzystujących te szablony już po kilku minutach. Zmiany w szablonach korzystają z kolejki zadań, więc wydajność może nie być stała. Pusta zmiana strony wymusi natychmiastową zmianę, ale nie powinna być konieczna, jeśli wszystko przebiega prawidłowo.

Podpowiedzi wyszukiwania
Podpowiedzi, które uzyskujesz podczas wpisywania zapytania w polu wyszukiwania, w postaci rozwijanej listy polecanych stron, to zasadniczo strony posortowane względem liczby linków wskazujących na nie. Warto zauważyć, że jeśli rozpoczniesz zapytanie znakiem ~, podpowiedzi nie wyświetlą się podczas wpisywania, i możesz w dowolnej chwili nacisnąć Enter, aby przejść do wyników wyszukiwania.

Pomijanie ASCII/akcentów/znaków diakrytyczncych jest włączone dla tekstu po angielsku, ale występują pewne problemy z formatowaniem wyników. Zobacz 52656.

Wyszukiwanie pełnotekstowe
Wyszukiwanie pełnotekstowe (które kieruje cię na stronę wyników wyszukiwania), wyszukuje w tytule, przekierowaniach, nagłówkach i tekście stron, więc nie powinno powodować niespodzianek. Duża zmiana polega na tym, że szablony są rozwijane.

Stemming – wyszukiwanie wyrazów o wspólnym rdzeniu
Istnieje wsparcie dla kilkudziesięciu języków, ale należy nim objąć wszystkie języki. Lista aktualnie wspieranych języków jest dostępna na elasticsearch.org; zobacz ich dokumentację dotyczącą współpracy, aby dodać wymagania lub poprawki.

Filtry (intitle:, incategory: and linksto:)


W porównaniu do starszej wersji doprecyzowaliśmy składnię filtrów.


 * intitle:foo
 * Wyszukuje strony, których tytuł zawiera foo. Tu działa stemming.
 * intitle:"foo bar"
 * Wyszukuje strony, których tytuł zawiera foo i bar. Stemmingiem objęte jest foo oraz bar.
 * intitle:foo bar
 * Wyszukuje strony, których tytuł zawiera foo, a których tytuł albo tekst zawiera bar.
 * -intitle:foo bar
 * Wyszukuje strony, których tytuł nie zawiera foo, a których tytuł albo tekst zawiera bar.
 * intitle: foo bar
 * Błąd składni, wyszukuje strony, których tytuł albo tekst zawiera intitle:, foo i bar.
 * incategory:Muzyka
 * Wyszukuje strony znajdujące się w kategorii Muzyka.
 * incategory:"historia muzyki"
 * Wyszukuje strony znajdujące się w kategorii Historia muzyki.
 * incategory:"musicale" incategory:"1920"
 * Wyszukuje strony znajdujące się jednocześnie w kategorii:Musicale i kategorii:1920.
 * -incategory:"musicale" incategory:"1920"
 * Wyszukuje strony nieznajdujące się w kategorii:Musicale, a znajdujące się w kategorii:1920.
 * zam*
 * Wyszukuje strony, których tytuł albo tekst zaczyna się na zam.
 * linksto:Pomoc:CirrusSearch
 * Wyszukuje strony, które linkują do strony Pomoc:CirrusSearch.
 * -linksto:Pomoc:CirrusSearch CirrusSearch
 * Wyszukuje strony, które zawierają tekst CirrusSearch, ale nie linkują do strony Pomoc:CirrusSearch.

prefix:
The prefix: syntax in its current form is relied upon for a great deal of functionality so it's been recreated as exactly as possible.


 * prefix:cow
 * Find articles in the content namespaces whose title starts with the word "cow".
 * domestic prefix:cow
 * Find articles in the content namespaces whose title starts with the word "cow" and that contain the word "domestic".
 * domestic prefix:Cow/
 * Find all sub-pages of the article "Cow" in the content namespaces that contain the word "domestic". This is a very common search and is frequently built using a special URL parameter called.
 * domestic prefix:Talk:Cow/
 * Find all sub-pages of the talk page "Talk:Cow" in the talk namespace that contain the word "domestic".
 * cow prefix:Pink Floyd/
 * Find all sub-pages of the article "Pink Floyd" in the content namespaces that contain the word "cow". The space is now insignificant.

Note that the old rule of having to put prefix: at the end of the query still applies.

Specjalne prefiksy

 * Find articles whose text is most similar to the text of the given articles.
 * Find articles in the talk namespace whose title or text contains the word foo
 * Find articles in the file namespace on this wiki and commons whose title or text contains the word
 * You can add  to the query (like  ) to remove the results from commons
 * Find articles in the file namespace on this wiki and commons whose title or text contains the word
 * You can add  to the query (like  ) to remove the results from commons
 * You can add  to the query (like  ) to remove the results from commons
 * You can add  to the query (like  ) to remove the results from commons

Czy chodziło Ci o
"Did you mean" suggestions are designed to notice if you misspell an uncommon phrase that happens to be an article title. If so, they'll let you know. They also seem to suggest more things than they ought to sometimes.

Prefer phrase matches
If you don't have too much special syntax in your query we'll give perfect phrase matches a boost. I'm being intentionally vague because I'm not sure exactly what "too much special syntax" should be. Right now if you add any explicit phrases to your search we'll turn off this feature.

Fuzzy search
Putting a ~ after a search term (but not double quotes) activates fuzzy search. You can also put a number from 0 to 1 to control the "fuzziness" fraction, e.g. nigtmare~.9 or lighnin~.1 or lighnin~0.1. Closer to one is less fuzzy.

Phrase search and proximity
Surrounding some words with quotes declares that you are searching for those words close together. You can add a ~ and then a number after the second quote to control just how close you mean. The proper name for this "closeness" is "phrase slop". The default "phrase slop" is 1.

Quotes and exact matches
Quotes turn on exact term matches. You can add a ~ to the quote to go back to the more aggressive matcher you know and love.

prefer-recent:
You can give recently edited articles a boost in the search results by adding "prefer-recent:" to the beginning of your search. By default this will scale 60% of the score exponentially with the time since the last edit, with a half life of 160 days. This can be modified like this: "prefer-recent:,". proportion_of_score_to_scale must be a number between 0 and 1 inclusive. half_life_in_days must be greater than 0 but allows decimal points. This number works pretty well if very small. I've tested it around .0001, which is 8.64 seconds.

This will eventually be on by default for Wikinews, but there is no reason why you can't activate it in any of your searches.

hastemplate:
You can find pages that use a certain template by adding the filter  to the search. We provide for the usual "syntactic sugar" of template calls. This means the lenient pagename and fullpagename capitalization works, and the main namespace abbreviation, ":" works. For example to find which pages transclude Quality image the full search (in all your preferred namespaces) can be: , and for that same template name in the main namespace, this works. You can omit the quotes if the template title does not contain a space. will filter pages that do not contain that template.

For wikitext that calls a template directly, you can use insource:, but hastemplate: searches the "post-expansion inclusion", so hastemplate: can find a template acting only temporarily as a "secondary template" or "meta-template", which are seen in neither the source nor content, ( but only included as a helper to any other template producing the final content). All content from a template is now reflected in search results is still the relevant philosophy here.

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:


 * Find files in the China category sorting quality images first.
 * Find files in the China category sorting quality images first.


 * Find files in the China category sorting quality images first and low quality images last.
 * Find files in the China category sorting quality images first and low quality images last.


 * 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.
 * 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.

Sorry for the inconsistent  in the name. Sorry again but the quotes are required on this one. Sorry also for the funky syntax. Sorry we don't try to emulate the template transclusion syntax like we do with.

insource:
will search text just in the wikitext. This will pick up template parameter names, URLs in link tags, etc. It has two flavors:
 * and
 * These work pretty similarly to  or regular content search in that they are fast but ignore punctuation.


 * and
 * These run Regular expressions against the page wikitext. They aren't efficient and we only allow a few of them to run at a time on the search cluster, but they are very powerful. The version with the extra  runs the expression case insensitive, and is even less efficient.


 * Tip: Instead of running insource: searches directly, these return much much faster if they always run on filtered results, such as:
 * Regex characteristically need to be honed before being released in the wild. To sharpen a new /regex/ for a wiki-side search, simply start with an intitle: filter of an article-space pagename, or for any other namespace, such as your user sandbox, use a prefix: filter on a fullpagenames. In article space a prefix: search works just as well, but its syntax is less intuitive, because prefix: must go after, but it still filters firstly.
 * Regex characteristically need to be honed before being released in the wild. To sharpen a new /regex/ for a wiki-side search, simply start with an intitle: filter of an article-space pagename, or for any other namespace, such as your user sandbox, use a prefix: filter on a fullpagenames. In article space a prefix: search works just as well, but its syntax is less intuitive, because prefix: must go after, but it still filters firstly.
 * Regex characteristically need to be honed before being released in the wild. To sharpen a new /regex/ for a wiki-side search, simply start with an intitle: filter of an article-space pagename, or for any other namespace, such as your user sandbox, use a prefix: filter on a fullpagenames. In article space a prefix: search works just as well, but its syntax is less intuitive, because prefix: must go after, but it still filters firstly.
 * Regex characteristically need to be honed before being released in the wild. To sharpen a new /regex/ for a wiki-side search, simply start with an intitle: filter of an article-space pagename, or for any other namespace, such as your user sandbox, use a prefix: filter on a fullpagenames. In article space a prefix: search works just as well, but its syntax is less intuitive, because prefix: must go after, but it still filters firstly.


 * If the regexp contains whitespace, you must either backslash-escape each space character,, or put everything after insource: in quotes,  . The metacharacters   must be backslash-escaped or escaped by virtue of being in a character class in square brackets like   or  , or else they have their usual metacharacter meaning. See the explanation of the syntax and the Lucene grammar for regular expressions.


 * For example, to find usage of a template called Val with an unnamed parameter of four-digits having a possible minus sign and, on the same page, Val with a named parameter "fmt=commas":

Auxiliary Text
Cirrus considers some text in the page to be "auxiliary" to what the page is actually about. Examples include table contents, image captions, and "This article is about the XYZ. For ZYX see ZYX" style links. You can also mark article text as auxiliary by adding the  class to the html element containing the text.

Auxiliary text is worth less than the rest of the article text and it is in the snippet only if there are no main article snippets matching the search.

Lead Text
Cirrus assumes that non-auxiliary text that is between the top of the page and the first heading is the "lead in" paragraph. Matches from the lead in paragraph are worth more in article ranking.

Commons Search
By default when the search contains the file namespace, Cirrus will search commons as well. You can disable this behavior by adding  to the search. If you are using a namespace prefix to select the namespace the syntax looks like. If you aren't using a namespace prefix to select the namespace then the syntax looks like.

Zobacz też

 * Full specifications in the browser tests