wl是什么意思| 偏头痛吃什么药最好| 什么的毛主席| 马不停蹄是什么生肖| 梦见数字是什么意思| 梅毒通过什么传播| 淋巴肉为什么不能吃| 正常白带是什么样的| 马骝是什么意思| 为什么腋下会长小肉揪| 什么原因引起血糖高| 水猴子是什么| 禅宗是什么意思| 乳糜血是什么意思| 双响炮是什么| sheep是什么意思| 胆结石挂什么科| 衣原体支原体感染有什么症状| 干眼症缺乏什么维生素| 头皮疼是什么原因| 黑便是什么原因引起的| 姨妈可以吃什么水果| 工字可以加什么偏旁| 儿童干咳吃什么药效果好| 日值四离是什么意思| 弊病是什么意思| 什么时间泡脚最好| 腰椎间盘突出吃什么药好| 孕妇补铁吃什么| 病毒性感冒什么症状| 女人一般什么时候容易怀孕| 男人很man是什么意思| 2023什么年| 梦见海水是什么意思| 大口鱼是什么鱼| 手口足吃什么药| 什么是转述句| 住房公积金缴存基数是什么意思| 脾大有什么危害| dx是什么| 殷是什么意思| 疥疮用什么药膏好得快| 梦见下暴雨是什么意思| 腱鞘炎是什么病| 增生性贫血是什么意思| m是什么| 江字五行属什么| 吃什么升白细胞最快| 毫无意义是什么意思| 炒作是什么意思| 食管炎有什么症状| 肩周炎用什么药最好| 什么和什么不能一起吃| 视功能是什么| 田亮为什么不娶郭晶晶| 新生儿贫血是什么原因造成的| 胳膊上的肌肉叫什么| 节育环嵌顿是什么意思| 一般什么人容易得甲亢| 相知相惜是什么意思| 膀胱ca是什么意思| 做无创需要注意什么| 景泰蓝是什么| 磁共振是做什么的| 胎神什么意思| 乳酸杆菌大量是什么意思| 黄是什么| 尿急尿频尿不尽吃什么药| 什么叫压缩性骨折| 孩子流黄鼻涕是什么原因| 杨梅有什么功效与作用| 疱疹性咽峡炎吃什么药最管用| 北极贝长什么样| vjc是什么品牌| 大便拉不干净是什么原因| 无花果什么功效| 什么叫耳石症| 前列腺多发钙化灶是什么意思| 98年什么命| 下巴长硬包是什么原因| 毛泽东什么时候逝世| xsh是什么意思| 旻字五行属什么| 十月份生日是什么星座| 黄花鱼是什么鱼| 梦见血是什么预兆| 什么情况下吃丹参滴丸| 粗脖子病是什么原因引起的| 监督的近义词是什么| 为伊消得人憔悴什么意思| 六味地黄丸有什么副作用吗| 黑色碳素笔是什么| 月字旁的有什么字| 吃什么油最好| 脚趾抽筋是什么原因引起的| 阔以是什么意思| 三点水加尺念什么| 睡觉尿多是什么原因| 平均血小板体积偏高是什么意思| 梦见着火是什么意思| 喝罗汉果水有什么功效| 喜欢吃酸的是什么原因| 小弟一阵阵的疼什么原因| 脚背浮肿是什么原因引起的| 乳头胀痛什么原因| 祥五行属什么| 太阳穴疼吃什么药| 湛江有什么好吃的| 吃什么囊肿会消失| 儿童舌系带短挂什么科| dunk是什么牌子| 为什么有的人晒不黑| 什么的月亮| 肚子咕咕叫是什么原因| 一个马一个并念什么| 猪沙肝是什么部位| 预防保健科是做什么的| 梦到捡到钱是什么预兆| 开塞露是干什么用的| 什么动物捉害虫| 哀伤是什么意思| 什么情况啊这是| 什么叫低级别上皮内瘤变| 属狗女和什么属相最配| 纳征是什么意思| lp是什么的简称| 李讷为什么不姓毛| 小腹胀胀的是什么原因| 凶猛的动物是什么生肖| 吃什么可以补铁| 牛肉配什么菜好吃| 炭疽病用什么农药最好| 肝功能谷丙转氨酶偏高是什么原因| 卵巢结节是什么意思| 精虫上脑什么意思| 大便粘马桶是什么原因| 白里透红的透是什么意思| 蓝莓有什么好处| 什么回大什么| biemlfdlkk是什么牌子| 为什么相爱的人却不能在一起| 七月份适合种什么菜| 下面出血是什么原因| 素数是什么| 王玉读什么| 智齿为什么叫智齿| 牙齿酸软是什么原因| 丙球是什么| 口腔炎吃什么药| 拔牙后吃什么恢复快| 心跳过速是什么原因| 公园里有什么有什么还有什么| 什么天空填动词| 梦寐以求是什么意思| 什么的围巾| hf医学上是什么意思| 927什么星座| 收留是什么意思| 备货是什么意思| 不劳而获是什么生肖| 牵牛花像什么| 儿童胃炎吃什么药| 桂味是什么| 奶泡是什么| 舌头干燥是什么原因| 永加一个日念什么| 阴虱卵长什么样图片| 干咳喝什么止咳糖浆好| 甲状腺激素高吃什么药| pioneer是什么牌子| 荆州是现在的什么地方| 妥了是什么意思| 什么床最环保没甲醛| 鸡蛋和面粉可以做什么好吃的| pbc是什么意思| 黄辣丁是什么鱼| 男性内分泌失调有什么症状| 书卷气是什么意思| 女生为什么会流白带| 九出十三归是什么意思| 臀推是什么意思| 泌尿外科是看什么的| leu是什么意思| 核磁dwi是什么意思| 学前教育是什么| 股骨头坏死是什么原因引起的| 做梦结婚是什么征兆| 例假期间吃什么食物好| 为什么哭了眼睛会肿| 吃什么养胃| 愚昧什么意思| 虫草泡水喝有什么功效| 检查妇科清洁度三是什么意思| 什么东西降火| 新癀片主要治什么病| 氯雷他定片治什么病| 三聚磷酸钠是什么| 神父是什么意思| 复方药是什么意思| 奥沙利文为什么叫火箭| 上尉军衔是什么级别| 好不热闹是什么意思| 今年为什么有两个6月| 钾离子高有什么危害| 胸闷是什么原因引起的| 陆地上最重的动物是什么| 金牛座是什么象| 2型糖尿病吃什么药降糖效果好| 肋骨骨折吃什么药| 什么什么深长| 西边五行属什么| 爆菊是什么意思| 喝完酒头疼是什么原因| 南极为什么比北极冷| 眼睛浮肿是什么原因| 宫颈息肉有什么危害| 2019年属什么| ferragamo是什么牌子| 爸爸的舅舅叫什么| 猫条是什么| 人为什么要有性生活| 后背沉重感是什么原因引起的| 胬肉是什么意思| 什么是犹太人| 牙周袋是什么| 什么除草剂三年不长草| 什么叫脑卒中| 胆固醇高有什么危害| 碳素笔是什么笔| 宗人府是什么地方| 经常口腔溃疡吃什么药| 11点多是什么时辰| 黯然泪下是什么意思| 凛冽是什么意思| 一直放屁是什么原因| 什么药可以延长性功能| msi是什么比赛| 青提是什么| 莲藕什么时候种植最佳| 经常干咳是什么原因| 主观意识是什么意思| 年柱比肩是什么意思| 属牛是什么命| 迷离的眼神什么意思| 嗳气是什么意思| 施华洛世奇算什么档次| 防晒衣什么面料好| twin什么意思| 脑脊液是什么颜色| 莲蓬吃了有什么好处| alpha是什么意思| 浜是什么意思| aso是什么意思| 夫妻都是o型血孩子是什么血型| 农历六月十五是什么星座| 12月13号是什么星座| 植脂末是什么东西| 股骨头坏死是什么原因引起的| 鸽子单眼伤风用什么药| 纺织厂是做什么的| 左侧附件区囊性回声是什么意思| 鼻子老流鼻涕是什么原因引起| 睡眠不好去医院看什么科| lof什么意思| 百度Jump to content

我想问一下,九七年种地要完上交又不能荒...

From mediawiki.org
This page is a translated version of the page Help:CirrusSearch and the translation is 25% complete.
Outdated translations are marked like this.
PD Зверн?ть увагу! Коли Ви редагу?те цю стор?нку, то погоджу?тесь робити св?й внесок п?д л?ценз??ю CC0. Детальн?ше про умови л?ценз?? можна д?знатися на стор?нц? дов?дки. PD
百度 中国嘉德2010年秋拍中,他的《长征》曾以亿元成交,创当时中国近现代书画纪录。

Найшвидший спос?б знайти ?нформац?ю в проектах В?к?мед?а — пошукати ?? прямо. На кожн?й стор?нц? ? поле пошук.

CirrusSearch — розширення MediaWiki, що використову? Elasticsearch для надання покращених функц?й пошуку пор?вняно з пошуком MediaWiki за замовчуванням. Фонд В?к?мед?а використову? CirrusSearch у вс?х про?ктах В?к?мед?а. На ц?й стор?нц? описан? властивост? CirrusSearch. Якщо ви не знайшли в?дпов?д? на ваше запитання, не вагайтеся запитувати на стор?нц? обговорення, ? хтось вам в?дпов?сть.

?нформац?ю про розширення MediaWiki можна отримати на стор?нц? Extension:CirrusSearch .

Про його використання у Wikidata див. Help:Extension:WikibaseCirrusSearch .

Як це працю?

Введ?ть ключов? слова та фрази, а на клав?атур? натисн?ть ?Enter? або ?Return?. Або натисн?ть п?ктограму лупи, кнопку ?Пошук? або ?Перейти?.

Якщо назва стор?нки зб?га?ться з текстом, що ви ввели, ви потрапите безпосередньо на цю стор?нку. В ?ншому випадку викону?ться пошук на вс?х стор?нках в?к?, результатом якого виводиться список статей (або також стор?нок в?к?) як? в?дпов?дають уведеним критер?ям, або пов?домлення про в?дсутн?сть стор?нок, як? б в?дпов?дали цим критер?ям

Якщо ви натиснете кнопку ?Знайти?, не заповнюючи н?чого, ви перейдете до розд?лу ?Спец?альна стор?нка: Пошук?, який нада? додатков? параметри пошуку (також доступн? з будь-якого списку результат?в пошуку)

Вам може стати в нагод? обмежити пошук лише стор?нками в певному простор? назв MediaWiki, наприклад, шукати т?льки на особистих стор?нках користувач?в в?к? — User. Позначте потр?бн? вам простори назв для цього пошуку.

Ус? ключов? слова, що наведен? нижче, чутлив? до рег?стру та написан? малими л?терами.

Що покращилося?

CirrusSearch в?др?зня?ться трьома основними покращеннями пор?вняно з пошуком MediaWiki за замовчуванням, а саме:

  • Краща п?дтримка пошуку р?зними мовами.
  • Швидше оновлення пошукового ?ндексу, що означа?, що зм?ни на стор?нках в?к? в?дображаються в результатах пошуку набагато швидше.
  • Розкриття шаблон?в, що означа?, що увесь вм?ст стор?нки, разом ?з таким, що створений включеними шаблонами, тепер в?добража?ться в результатах пошуку.

Яка пер?одичн?сть оновлення ?ндексу пошуку?

There are two primary search indexes to consider:

The first is full-text search, on Special:Search. This index is updated in near real time. Зм?ни на стор?нках мають з'явитися в результатах пошуку впродовж к?лькох хвилин, але 30 хвилин усе одно вважаються нормальною роботою. Зм?ни в шаблонах мають в?дображатися в стор?нках, як? мають включення цих шаблон?в, протягом к?лькох хвилин, що займа? до к?лькох годин залежно в?д к?лькост? стор?нок, на яких використову?ться шаблон. Щоб перерендерити стор?нку, можна зробити нульове редагування, але при нормальн?й робот? руш?я це не знадобиться.

The second index to consider is the fuzzy auto-complete title search. This index is updated once a day and mirrors what was found in the full-text search index at the time the index was updated. Depending on timing a new page could take two days to be found in the fuzzy title autocomplete. If this is unacceptable for a particular use case, within user search options the title completion can be changed to classic prefix search which uses the full-text search index.

Пошуков? п?дказки

Вар?анти фрази чи слова, що з'являються у спадному меню п?сля початку пошукового набору, ч?тко в?дпов?дають назвам статей, ранжованих за к?льк?стю зовн?шн?х посилань на них. При цьому врахову?ться к?льк?сть вх?дних в?к?-статей, розм?р стор?нки, к?льк?сть зовн?шн?х посилань, к?льк?сть заголовк?в ? к?льк?сть перенаправлень.

П?дказки пошуку можна оминути ? запит перекине одразу на стор?нку результат?в пошуку. Додайте тильду ~ перед пошуковою фразою. Наприклад, ?~Фр?да Кало?. П?дказки пошуку все одно показуватимуться, але натискання на клав?шу ?Enter? у будь-який час одразу виведе вам результати пошуку.

Для деяких мов ув?мкнено "згортання" наголос?в/д?акритики; детал? залежать в?д мови.

The algorithm used to rank suggestions is described in more detail at Extension:CirrusSearch/CompletionSuggester#Ranking criteria.

Повнотекстовий пошук

?Повнотекстовий пошук? — це ??ндексований пошук?. Ус? стор?нки збер?гаються у баз? даних в?к? ? вс? слова на стор?нках, як? не ? перенаправленнями, збер?гаються у баз? даних пошуку, яка ? ?ндексом для практично повного тексту в?к?. Кожне видиме слово ?ндексу?ться у список стор?нок, де його можна знайти, тож пошук слова ? швидким прогляданням ?диного запису.[1] Б?льше того, будь-як? зм?ни в словах вносяться в ?ндекс пошуку впродовж секунд.

? багато ?ндекс?в ?повного тексту? в?к?, що забезпечують р?зн? потр?бн? типи пошуку. Повний в?к?текст ?ндексу?ться багато раз?в у багато спец?ал?зованих ?ндекс?в, кожен з яких анал?зу? в?к?текст певним чином, оптим?зованим для використання цих ?ндекс?в. Приклади ?ндекс?в:

  • ?Допом?жний? текст, куди входять прим?тки, п?дписи, зм?ст та будь-який в?к?текст, що ма? клас зг?дно з атрибутом HTML class=searchaux.
  • ?Преамбула? — в?к?текст м?ж верхом стор?нки ? першим заголовком.
  • Текст ?категор?й? ?ндексу? списки унизу.
  • Шаблони ?ндексуються. Якщо в шаблон? зм?ню?ться вм?ст, включений до ?нших стор?нок, то вс? так? стор?нки також оновлюються. (Це може зайняти чимало часом, залежно в?д завантаженост? черги завдань). Якщо зм?нюються п?дшаблони, використан? в шаблон?, ?ндекс оновлю?ться.
  • Вм?ст документ?в в простор? назв File/Media, тепер ?ндексу?ться. Розп?знаються тисяч? формат?в.

Реал?зована п?дтримка для десятк?в мов, але бажана п?дтримка вс?х мов. Список п?дтримуваних мов: elasticsearch.org; щоби в?дправити запит або редагування, див. документац?ю щодо внеску в про?кт. Також використовуються сторонн? б?бл?отеки з в?дкритим кодом для п?дтримки додаткових мов, як? не охоплюються Elasticsearch.

CirrusSearch оптим?зу? ? опрацю? ваш запит. Заголовки результат?в зважуються за релевантн?стю ? проходять ?рунтовну пост-обробку, 20 за раз, для виведення на стор?нку результат?в пошуку. Наприклад, з? статт? вибира?ться фрагмент, ? пошукова фраза п?дсв?чу?ться жирним текстом.

Результати пошуку часто супроводжуються р?зними попередн?ми пов?домленнями. До них належать Можливо, ви мали на уваз? (корекц?я орфограф??) ?, якщо в ?ншому випадку не буде знайдено жодного результату, буде сказано Показано результати для (скоректований запит) ? зам?сть пошуку (ваш запит).

Можливостями пошуку також ?:

  • Сортування результат?в за к?льк?стю вх?дних посилань.
  • Символ тильди ~ на початку, щоб вимкнути нав?гац?ю та пропозиц?? ?з збереженням рейтингу стор?нок.
  • ?нтелектуальне з?ставлення символ?в шляхом нормал?зац?? (або ?згортання?) неклав?атурних символ?в у символи клав?атури.
  • На стор?нц? результат?в пошуку знайден? слова та фрази вид?ляються жирним шрифтом. Механ?зм вид?лення — це косметичний анал?затор, який працю? п?сля ?ндексного пошуку, що фактично знаходить стор?нку, тому вони можуть бути не на 100% синхрон?зован?, особливо для регулярного виразу. Механ?зм вид?лення може бути б?льш або менш точним, н?ж ?ндексатор.

Слова, фрази, модиф?катори

Простий пошуковий запит представля? собою слово або ?фразу в лапках?. Details vary by language, especially for languages without spaces, but search typically recognizes a "word" to be:

  • a string of digits
  • a string of letters
  • subwords between letters/digit transitions, such as in txt2regex
  • subwords inside a compoundName using camelCase

A "stop word" is a word that is ignored (because it is common, or for other reasons). The list of stop words is language-specific and not all languages support stop words.[2] A given search term matches against content (rendered on the page). To match against wikitext instead, use the insource search parameter (See section below). Each search parameter has its own index, and interprets its given term in its own way.[3]

Spacing between words, phrases, parameters, and input to parameters, can include generous instances of whitespace and greyspace characters. "Greyspace characters" are all the non-alphanumeric characters ~!@#$%^&()_+-={}|[]\:";'<>?,./. A mixed string of greyspace characters and whitespace characters, is "greyspace", and is treated as one big word boundary. Greyspace is how indexes are made and queries are interpreted.[4]

Two exceptions are where 1) an embedded:colon is one word (it being treated as a letter), and 2) an embedded comma , such as in 1,2,3, is treated as a number. Greyspace characters are otherwise ignored unless, due to query syntax, they can be interpreted as modifier characters.

The modifiers are ~ * \? - " ! . Depending on their placement in the syntax they can apply to a term, a parameter, or to an entire query. Word and phrase modifiers are the wildcard, proximity, and fuzzy searches. Each parameter can have their own modifiers, but in general:

  • A fuzzy-word or fuzzy-phrase search can suffix a tilde ~ character (and a number telling the degree).
  • A tilde ~ character prefixed to the first term of a query guarantees search results instead of any possible navigation.
  • A wildcard character inside a word can be an (escaped) question mark \? for one character or an asterisk * character for zero or more characters.
  • Truth-logic can interpret AND and OR, but parameters cannot. Note that the AND and OR operators currently do not function in the traditional truth-logic manner! For details see more on logical operators.
  • Truth-logic understands - or ! prefixed to a term to invert the usual meaning of the term from "match" to "exclude".
Words that begin with - or !, such as -in-law or !Kung can exactly match titles and redirects, but will also match every document that does not contain the negated word, which is usually almost all documents. To search for such terms other than as exact matches for titles or redirects, use the insource search parameter (See section below).
  • Quotes around words mark an "exact phrase" search. For parameters they are also needed to delimit multi-word input.
  • Stemming is automatic but can be turned off using an "exact phrase".
The two wildcard characters are the star and the (escaped) question mark, and both can come in the middle or end of a word. The escaped question mark \? stands for one character and the star * stands for any number of characters. Because many users, instead of writing a query, will ask a question, any question mark is ignored unless purposefully escaped \? into its wildcard meaning.

A phrase search can be initiated by various hints to the search engine. Each method of hinting has a side-effect of how tolerant the matching of the word sequence will be. For greyspace, camelCase, or txt2number hints:

  • given words-joined_by_greyspace(characters) or wordsJoinedByCamelCaseCharacters it finds words joined by ... characters, in their bare forms or greyspace forms.
  • txt2number will match txt 2 number or txt-2.number.
  • Stop words are enabled for the edge cases (in the periphery) of a grey_space or camelCase phrase. An example using the, of, and a is that the_invisible_hand_of_a matches invisible hand within the text meetings invisible hand shake.

A "search instead" report is triggered when a universally unknown word is ignored in a phrase.

Each one of the following types of phrase-matching contains and widens the match-tolerances of the previous one:

  • An "exact phrase" "in quotes" will tolerate (match with) greyspace. Given "exact_phrase" or "exact phrase" it matches "exact]phrase".
  • A greyspace_phrase initiates stemming and stop word checks.
  • Given CamelCase it will additionally match camelcase, in all lowercase, because CirrusSearch is not case sensitive in matching.

Note that CamelCase matching is not enabled for all languages.

Some parameters interpret greyspace phrases, but other parameters, like insource only interpret the usual "phrase in quotes".

In search terminology, support for "stemming" means that a search for "swim" will also include "swimming" and "swimmed", but may not include irregular forms like "swam".
Пошукова фраза parserfunction parserFunction parser function parser-function parser:function parSer:funcTion
parserfunction Yes Yes N N N N
"parser function" N N Yes Yes N N
parser_function N Yes Yes Yes N N
parserFunction Yes Yes Yes Yes N N
"parser:function" N N N N Yes Yes
"parser_function" N N Yes Yes N N
"parSer_funcTion" N N Yes Yes N N
parSer_FuncTion N N Yes Yes Yes Yes

Note that all stemming is case insensitive.

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 in:this:word, CirrusSearch, when in an "exact phrase" context, (which includes the insource parameter context), will not match in, this, or word, but will then only match in:this:word.

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.[5] 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 parserFunction and parser<stems> function<stems>.

Making inquiries with numbers, we would find that:

  • Plan9 or Plan_9 matches any of: plan9, plans 9, planned 9th, (planned) 9.2, "plans" (9:24)
  • "plan9" only matches plan9 (case insensitive)
  • Plan*9 matches plan9 or planet4589.

The star * wildcard matches a string of letters and digits within a rendered word, but never the beginning character. One or more characters must precede the * character.

  • When * matches numbers, a 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" * is treated as a greyspace character and not a wild card character, so it delimits words.

The \? wildcard represents one letter or number; *\? is also accepted, but \?* is not recognized.

The wildcards are for basic word, phrase, and insource searches, and may also be an alternative to (some) advanced regex searches (covered later).

Putting a tilde ~ character after a word or phrase activates a fuzzy search.

  • For a phrase it is termed a proximity search, because proximal words are tolerated to an approximate rather than exact phrase.
  • For example, "exact one two phrase"~2 matches exact phrase.
  • For a word it means extra characters or changed characters.
  • For a phrase a fuzzy search requires a whole number telling it how many extra words to fit in, but for a word a fuzzy search can have a decimal fraction, defaulting to word~0.5 (word~.5), where at most two letters can be found swapped, changed, or added, but never the first two letters.
  • For a proximity phrase, a large number can be used, but that is an "expensive" (slow) search.
  • For a word word~2 is most fuzzy with an edit distance of 2 (default), and word~1 is least fuzzy, and word~0 is not fuzzy at all.
flowers algernon Flowers for Algernon flowers are for Algernon Flowers a1 2b 3c 4f 5j 6l 7j 8p q9 z10 for Algernon
"flowers algernon" Yes N N N
"flowers algernon"~0 Yes N N N
"flowers algernon"~1 Yes Yes N N
"flowers algernon"~2 Yes Yes Yes N
"flowers algernon"~11 Yes Yes Yes Yes
"algernon flowers"~1 N N N N
"algernon flowers"~2 Yes N N N
"algernon flowers"~3 Yes Yes N N
"algernon flowers"~4 Yes Yes Yes N
"algernon flowers"~13 Yes Yes Yes Yes

For the closeness value necessary to match in reverse (right to left) order, count and discard all the extra words, then add twice the total count of remaining words minus one. (In other words, add twice the number of segments). For the full proximity algorithm, see Elasticsearch slop.

Лапки вимикають морфолог?чний пошук, тильда "but appending"~ його поверта?.

flowers flower Flowers for Algernon flower for Algernon
flowers Yes Yes Yes Yes Stemming is in effect.
"flowers" Yes N Yes N Proximity search turns off stemming.
"flowers"~ Yes Yes Yes Yes Proximity plus stemming by suffixing a tilde.
"flowers for algernon" N N Yes N Proximity search turns off stemming.
"flowers for algernon"~ N N Yes Yes Proximity plus stemming by suffixing a tilde.
"flowers algernon"~1 N N Yes N Proximity search turns off stemming.
"flowers algernon"~1~ N N Yes Yes Proximity plus stemming by suffixing a tilde.

Insource

1.24
Gerrit change 137733

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 (aka wikicode), on any page except redirects. This phrase completely ignores greyspace: insource: "state state autocollapse" matches |state={{{state|autocollapse}}}.

insource: word
insource: "word1 word2"
Greyspace characters are ignored, just as they are with word searches and exact-phrase searches.
insource:/regexp/
insource:/regexp/i
These are regular expressions. They aren't efficient, so only a few are allowed at a time on the search cluster, but they are very powerful. The regular expression matches case-sensitively by default; case-insensitivity can be opted in with the extra i, which is even less efficient.

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.[6] Regexes 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 runs for more than twenty seconds. Regexes run last in a query, so to limit needless character-level scanning, every regex query should include other search terms to limit the number of documents that need to be scanned.[7] Often the best candidate to add to the regex query insource:/arg/ is insource:arg, where arg is the same (and uses no wildcards).

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

Insource indexed-search and regexp-search roles are similar in many respects:

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

But indexed searches all ignore greyspace; wildcards searches do not match greyspace, so regexes are the only way to find an exact string of any and all characters, for example a sequence of two spaces. Regexes are an entirely different class of search tool that make matching a literal string easy (basic, beginner use), and make matching by metacharacter expressions possible (advanced use) on the wiki. See #Regular expression searches below.

The insource parameter treats words with embedded colons as one word. This affects search queries for templates, parser functions, URLs, wikilinks, HTML tags, and comments.
When possible, please avoid running a bare regexp search. See how this is always possible at #Regular expression searches, below.
To search for words that begin with - or !, such as -in-law or !Kung, use a case-insensitive insource query together with a simple search on the "plain" version of the term (to avoid a bare regexp search). For example, "in-law" insource:/-in-law/i or "kung" insource:/!kung/i.

Prefix and namespace

Prepending a namespace term like file: to a search query limits results to a specific namespace , instead of searching the entire wiki. The default namespace is "Main".

У пошуковому в?кн? можна задати лише одну назву просту назв. It must be the first term in the query, or, if used as part of a prefix: term, must appear as the last term in the query.

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

To specify a namespace name, prefix it with a colon, e.g., talk:. Use all: to search across all namespaces, or : (a single colon) to search just the main article namespace.

The all: term does not include the File: namespace, which includes media content held at Commons such as PDF, which are all indexed and searchable. When File is involved, a namespace modifier local: has an effect, otherwise it is ignored.

As with search parameters, local: and all: must be lowercase. Namespaces names, though, are case insensitive.

Namespace aliases are accepted.

talk: "Wind clock" Find pages in the Talk namespace whose title or text contains the phrase "wind clock".
file: "Wind clock" Find pages in File namespace, whose title, text, or media content contains the phrase "wind clock".
file: local: "Wind clock" Filter out results from Commons wiki.
local: "Wind clock" Ignored. Searches mainspace. Local is ignored unless File is involved.

prefix:

The prefix: parameter matches any number of first-characters of all pagenames in one namespace.[8] 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), ' (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. This term always goes at the end, so that pagename characters may contain quotation marks (").

prefix:cow Знайти статт? в основному простор?в назв, чия назва почина?ться з трьох букв c o w.
domestic   prefix:cow Знайти статт? в основному простор?в назв, чия назва почина?ться з трьох букв c o w, ? м?стить слово ?domestic?.
domestic   prefix:cow/ Знайти вс? п?дстор?нки статт? Cow в основному простор? назв, як? м?стять слово ?domestic?. Це дуже загальний пошук ? часто побудований з використанням спец?ального параметра URL з ?м'ям prefix=.
domestic   prefix:Talk:cow/ List any subpages of Talk:cow, but only if they contain the word "domestic".
1967   prefix:Pink Floyd/ List any subpages of Pink Floyd, but only if it also contains the word "1967".

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

Вилучення вм?сту з пошукового ?ндексу

Content can be excluded from the search index by adding class="navigation-not-searchable". This will instruct CirrusSearch to ignore this content from the search index (see T162905 for more context).

Additionally content can be marked as auxiliary information by adding class="searchaux". This will instruct CirrusSearch to move the content from the main text to an auxiliary field which has lower importance for search and snippet highlighting. This distinction is used for items such as image thumbnail descriptions, 'see also' sections, etc.

Ф?льтри

A filter will have multiple instances, or negated instances, or it can run as a standalone filtering a search domain. A query is formed as terms that filter a search domain.

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

A namespace is a specified search domain but not a filter because a namespace will not run standalone. A prefix will negate so it is a filter. The search parameters below are filters for which there may be multiple instances.

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

  • cow*
    • Find articles whose title or text contains words that start with cow
  • intitle:foo
    • Знаходить стор?нки, в заголовку яких ? ?foo? (з врахуванням пох?дних).
  • intitle:"fine line"
    • Знаходить стор?нки, в заголовку яких ? fine line (пох?дн? заборонен?).
  • intitle:foo bar
    • Знаходить стор?нки, в заголовку яких ? ?foo? ? в заголовку або в текст? ? ?bar?.
  • -intitle:foo bar
    • Знаходить стор?нки, в заголовку яких нема ?foo? ? заголовок або текст м?стить ?bar?.
  • incategory:Music
    • Знаходить стор?нки, включен? до категор?? Category:Music
  • incategory:"music history"
    • Знаходить стор?нки, включен? до категор?? Category:Music_history
  • incategory:"musicals" incategory:"1920"
    • Знаходить стор?нки, включен? одночасно до категор?й Category:Musicals та Category:1920
  • -incategory:"musicals" incategory:"1920"
    • Знаходить стор?нки, включен? до категор?? Category:1920, але не включен? до Category:Musicals

Intitle and incategory are old search parameters. Incategory no longer searches any subcategory automatically, but you can now add multiple category pagenames manually.

1.31
Gerrit change 413896

Since MediaWiki 1.31-wmf.23 Regular expression searches are supported for intitle:

intitle:/regex/, intitle:/regex/i

Everything written in the #Regular expression searches is also valid for these searches, including warnings.

When possible, please avoid running a bare regexp search. See how this is always possible at #Regular expression searches, below.

Deepcategory

Deep category search allows to search in category and all subcategories. The depth of the tree is limited by 5 levels currently (configurable) and the number of categories is limited by 256 (configurable). The deep search uses SPARQL Category service from WDQS. Keywords are deepcategory or deepcat. Example:

  • deepcat:"musicals"
    • Find articles that are in Category:Musicals or any of the subcategories.

The DeepCat gadget that previously implemented the parameter was sunsetted in January 2020.

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. Help:CirrusSearch/uk.)

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

CirrusSearch -linksto: Help:CirrusSearch finds articles that mention "CirrusSearch" but not in a wikilink.

Hastemplate

You can specify template usage with hastemplate: template. 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.

Наприклад

  • 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 a specific content model. For possible models cf. Content handlers. E.g.:

  • To see only JSON pages:
contentmodel:json

subpageof

To find sub-pages.

subpageof: ParentPage

Наприклад

  • To find all subpages of CirrusSearch.
subpageof:CirrusSearch
  • Use double quotes if the parent page contains spaces.
subpageof:"Requests for comment"
unlike prefix:, do not include the page namespace in the keyword value. If you want to limit to sub-pages of a particular namespace use the namespace filter.

Articletopic

The articletopic: keyword allows filtering search results by topic. For possible topics see Help:CirrusSearch/articletopic . E.g. articletopic:books will filter the search results to articles about books. articletopic:books|films will filter to articles about books or films. articletopic:books articletopic:films will filter to articles which are about both books and films.

Only mainspace articles belong into topics, and topics are only available on Wikipedias. Unlike other filters, articletopic also does page weighting: articles which are a stronger match for a topic will be higher in the search results (while articles which aren't about that subject at all will be removed from the result set completely).

Topic models are derived via Machine Learning . Any given article receives a score on dozens of different topics, and therefore may appear under different keywords. For instance, the article on Albert Einstein may appear as a "physics" article and a "biography" article. All Wikipedias have scores available -- some have local-language topic models that have coverage on all articles. Other languages do not have local models, and are using English-language scores assigned to articles in the local language that also exist in English Wikipedia. The languages with such "cross-wiki" scores do not have 100% coverage -- depending on the language, it may only be something like 60% of articles that have topics available.

Topic-related search data is updated weekly, so recently created articles might not show up in topic-based search queries.

Pageid

The pageid: keyword restricts search results to the given set of page IDs. This is not really useful for manual searching; it can be used by software tools for checking whether a set of pages match the given set of search conditions (e.g. for re-validating cached search results).

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

  • morelike:page name 1|page name 2|...|page name n
    • Знаходить статт?, текст яких ? найб?льш под?бний на текст вказаних статей.
  • morelike:wasp|bee|ant
    • Знайти статт? про stinging insects.
  • morelike:template:search|template:regex|template:usage
    • Знайти шаблони про regex-пошук для використання шаблон?в у В?к?.

Ключове слово morelike ? ?жад?бним?, що означа?, що воно не може по?днуватися з ?ншими пошуковими запитами. Якщо ви хочете використовувати ?нш? пошуков? запити, використовуйте morelikethis у сво?му пошуку:

  • morelikethis:bee hastemplate:"featured article"
    • Знайти статт? про bees, як? також мають шаблон ?featured article?.

Запит morelike: вибира? наб?р сл?в з вказаних статей ? викону? запит з вибраними словами. Ви можете налаштувати спос?б його роботи додаванням таких параметр?в до URL результат?в пошуку:

  • cirrusMltMinDocFreq - М?н?мальна к?льк?сть документ?в (per shard), що потр?бн? терму для його розгляду.
  • cirrusMltMaxDocFreq - Максимальна к?льк?сть документ?в (per shard), як? ма? терм для його розгляду.
  • cirrusMltMaxQueryTerms - * $1: Максимальна к?льк?сть терм?в, що розглядаються.
  • cirrusMltMinTermFreq - * $1: М?н?мальна к?льк?сть раз?в появи терму на вход? в документ?, який буде розглянутий. Для малих пол?в ($title) це значення дор?вню? 1.
  • cirrusMltMinWordLength - * $1: М?н?мальна довжина терму, що розгляда?ться. За умовчанням 0.
  • cirrusMltMaxWordLength - * $1: Максимальна довжина слова, вище яко? слова будуть про?гнорован?. За умовчанням не обмежена (0).
  • cirrusMltFields (comma separated list of values) - * $1 (список значень розд?лених комами): Це поля, що використовуються. Допустим? так? поля title, text, auxiliary_text, opening_text, headings ? all.
  • cirrusMltUseFields (true | false) - * $1 ($true|$false): використовувати т?льки дан? поля. За умовчанням false: система буде вибирати вм?ст text поля для побудови запиту.
  • cirrusMltPercentTermsToMatch - * $1: В?дсоток терм?в для в?дпов?дност?. За умовчанням 0.3 (30 в?дсотк?в).
  • * Приклад: $1

Ц? установки можуть бути зроблен? пост?йними перевизначенням $cirrusmlt в системних пов?домленнях.

&cirrusMtlUseFields=yes&cirrusMltFields=title&cirrusMltMinTermFreq=1&cirrusMltMinDocFreq=1&cirrusMltMinWordLength=2

These settings can be made persistent by overriding cirrussearch-morelikethis-settings in System message.

Prefer-recent

Adding prefer-recent: anywhere in the query gives recently edited articles a slightly larger than normal boost in the page-ranking rules. Prefer-recent is only applied when using the default relevance sort order.

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.

Наприклад

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

Можна зб?льшити пошукову оц?нку стор?нок залежно в?д того, як? шаблони вони м?стять. Це можна застосувати до вс?х пошукових запит?в, оголосивши зб?льшення через MediaWiki:Cirrussearch-boost-templates або ad-hoc в окремих запитах через оператор boost-templates:"". Якщо в запит? встановлено оператор boost-templates, вм?ст cirrussearch-boost-templates ?гнору?ться. Similar to the prefer-recent feature, boost-templates is applied as part of the default relevance sort order. It has no effect on other search orders.

The syntax of the message is as follows:

  • Everything from a # character to the end of the line is considered a comment, and ignored.
  • Every non-blank line is interpreted as the exact name of a template that should receive boosting (including namespace prefix), followed by a pipe "|" character, followed by a number, followed by a "%" character.

Good examples:

 Template:Important|150%
 Template:Very_Very_Important|300%
 Template:Less_important|50%

Bad examples:

 Template:Foo|150.234234% # decimal points are not allowed.
 Foo|150% # technically valid, but acts on transclusions of Foo (main space article) instead of Template:Foo.

Деяк? приклади:

boost-templates:"Template:Quality_Image|200%" incategory:china
Знаходить файли в категор?? China, сортуючи як?сн? зображення на початок.
boost-templates:"Template:Quality_Image|200% Template:Low_Quality|50%" incategory:china
Знаходить файли в категор?? China, сортуючи високояк?сн? зображення на початок, а низькояк?сн? — в к?нець.
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 cirrussearch-boost-templates message this can be reduced to just popcorn.

Десятков? крапки не допускаються у в?дсоткових значеннях. Оц?нка результат?в пошуку така, що частки в?дсотка навряд чи мають значення.

Будьте обережн?: якщо ви дода?те дуже мал? або дуже велик? в?дсотки через cirrussearch-boost-templates, вони можуть з?псувати оц?нку повного тексту. Наприклад, якби В?к?пед?я зб?льшила оц?нку шаблону ?Вибрана стаття? на 1 м?льйон в?дсотк?в, тод? пошук за будь-яким терм?ном, згаданим у вибраних статтях, ставив би вибрану статтю вище нав?ть спец?ал?зовано? статт? про цей терм?н.

Пошук за фразою також буде неефективним, тому що такий пошук, як brave new world, першим результатом видасть вибрану статтю, нав?ть якщо в н?й згадуються лише ц? три слова, зам?сть б?льш релевантно? статт? про Brave New World.

Пошук з допомогою регулярних вираз?в

Увага Увага: Не виконуйте пошук т?льки з insource:/regexp/. Ймов?рно, в?н все одно вичерпа? час оч?кування через 20 секунд, блокуючи запити в?д в?дпов?дальних користувач?в.

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. Mostly that search behavior is wanted by the user. However, sometimes one wants to have the ability for a more precise search.

To get around the syntactic deficiency of index-based searches regexp searches can be used. But as queries with only regexp expressions are very slow and resource consuming, they should always be combined with an index-based search, such that the regexp search-domain gets limited to the results of one or more index-based search.

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 develops a simple filter to generate the search domain for the regex engine to search (index based search domain marked bold, regexp part marked in italics):

  • insource:"debian.reproducible.net" insource:/debian\.reproducible\.net/
  • insource:"c:\program files (x86)" insource:/C\:\\Program Files \(x86\)/i
  • insource:"<tag>{{template}}</tag>" insource:/"<tag>{{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.

Наприклад: [[Special:Search/insource:/regex/ prefix:{{FULLPAGENAME}}]] знаходить терм?н regex на ц?й стр?нц?.

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 a 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 an insource:// (a regexp of any kind), consider adding 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:

  • insource:"" with quotation marks, duplicating the regexp except without the slashes or escape characters, is ideal.
  • intitle (without regex search), 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.

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.

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

Метасимволи

This section covers how to escape metacharacters used in regexp searches. For the actual meaning of the metacharacters see the explanation of the syntax.[9]

The use of an exact string requires a regexp, but the regexp term obligates the search to limit itself. Add a regexp term, never search a bare regexp. Start by noting the number of pages in a previous search before committing an exact string search. Querying with an exact string requires a filtered search domain.

Наприклад:

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

? деяк? пом?тн? в?дм?нност? в?д стандартних метасимвол?в регулярних вираз?в:

  • \n або \r\n не зарезервован? для в?дпов?дност? до нового рядка. To search for a string that contains a newline, you can do a search like insource:/[^\}]\}\}[^\} \|]{2}\<noinclude/i which means not a curly brace, then two curly braces, then any two characters except a curly brace, space, or pipe, then a ?<noinclude> tag. The "any character except" will include a newline in the search. Note thas this search was designed only to match to the following string:
}}

<noinclude>
  • Метасимвол крапка . означа? будь-який символ, включаючи новий рядок, тобто .* в?дпов?да? вс?м рядкам.
  • Знак числа # означа? щось ? ма? бути екранований.[10]
  • Символи ^ ? $ не потр?бн?. Под?бно до "grep" (глобальний для рядка, регулярний вираз, друк кожного рядка), кожен insource:// це "глобальний для документа, регулярний вираз, список-результат?в-пошуку кожного документа" для документа.
  • Символи < ? > п?дтримують багатоцифровий числовий д?апазон, под?бно до [0-9], але без урахування к?лькост? позиц?й символ?в або д?апазону в кожн?й позиц??, тому працю? <9-10> ? нав?ть <1-111>.

Substitutions for some metacharacters

While character classes \n, \s, \S are not supported, in case of an acute need to use them in a regular expression, you may use these workarounds:

PCRE CirrusSearch Description
\n [^ -??] A newline (also a tabulation character can be found)[11]
[^\n] [ -??] Any character except a newline and tabulation
\s [^!-??] A whitespace character: space, newline, or tabulation
\S [!-??] Any character except whitespace

In these ranges, " " (space) is the character immediately following the control characters, "!" is the character immediately following space, and "??" is U+10FFFF, the last character in Unicode. Thus, the range from " " to "??" includes all characters except for control characters (of which articles may contain newlines and tabulation), while the range from "!" to "??" includes all characters except for control characters and space.

Refining with an exact string

  • refining 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.

You can start out intending an exact string search, but keep in mind:

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

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.

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

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.

  • /"[[page/name|{{temp-late"/ instead of /\[\[page\/name\|\{\{temp\-late/
  • /"literal back\slash"/ is as good as /literal back\\slash/
  • But /"This \" fails"/ always.
  • And /"This \/ depends"/. It finds the \/ literally, which is not the / you probably wanted.

Backslash-escape using insource:/regexp/ allows escaping the " and / delimiters, but requires taking into account metacharacters, and escaping any:

  • 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 "~@#&*()-+{}[]|\<>?.\".

The simplest algorithm to create the basic string-finding expression using insource:/"regexp"/, need not take metacharacters into account except for the " and / characters:

  1. Write the/str"ing out. (The /" delimiters "/ are not shown.)
  1. Replace " with "\"" (previous double-quote: stop, concatenate, quote restart).
  1. Replace / with "\/" (stop, concatenate, start).
  1. You get insource:/"the"\/"str"\""ing"/, showing concatenation of the two methods.
While refining a regexp on a search results page, keep in mind that the snippet "wikitext" has modified spacing. Regex are sensitive to space characters, so copying from snippets is dangerous.

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:

  • 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:"<tag>[[link|2\3?]]\</tag>" insource:/"<tag>[[link|2\3?]]<"\/"tag>"/


Regex у назвах

Ключове слово insource зд?йсню? пошук лише у вм?ст? стор?нки. Для запуску regex-пошуку в рядках назв можна використовувати intitle:/regex/.

Складн?ший приклад

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 fmt=commas having any allowable spaces around it, (it could be the same template call, or a separate one):

hastemplate:val insource:"fmt commas" insource:/\{\{ *[Vv]al *\|[^}]*fmt *= *commas/ insource:/\{\{ *[Vv]al *\|[^}]*[-+]?[0-9]{3,4} *[|}]/

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.

Гео-пошук

Searching based on the (primary) coordinates associated with pages. Depends on Extension:GeoData and {{#coordinates:}}

bounded

You can limit search to pages identified as being near some specified geographic coordinates. The coordinates can either be specified as a <lat>,<lon> 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. Приклади:

  • neartitle:"San Francisco"
  • neartitle:"100km,San Francisco"
  • nearcoord:37.776,-122.39
  • nearcoord:42km,37.776,-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.776,-122.39
  • boost-nearcoord:42km,37.776,-122.39


Пошук властивостей файл?в

1.28
Gerrit change 311061

Since MediaWiki 1.28, CirrusSearch supports indexing and searching of properties of files in the File: namespace. This includes:

  • file media type
  • MIME type
  • size
  • width & height
  • resolution
  • bit depth for files that support these
While these predicates are useful only for files, they by themselves do not limit search to the File: namespace. It is recommended to include this namespace in a search or restrict the search to only this namespace when using these conditionals.

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:

  • UNKNOWN
  • BITMAP
  • DRAWING
  • AUDIO
  • VIDEO
  • MULTIMEDIA
  • OFFICE
  • TEXT
  • EXECUTABLE
  • ARCHIVE
  • 3D

This list may be extended in the future. See also MEDIATYPE_* constants in defines.php.

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.

Приклади:

  • filemime:"image/png" - look for files with MIME type exactly image/png
  • filemime:pdf - look for all PDF documents
  • -filemime:pdf - skip all PDF documents (notably on Commons)

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

Приклади:

  • 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 measure can be:

  • filew or filewidth - file width
  • fileh or fileheight - file height
  • fileres - file resolution (see above)
  • filebits - file bit depth

Приклади:

  • filew:>800 fileh:>600 - files that are at least 800×600 pixels in size
  • filebits:16 - files with 16-bit color depth
  • fileheight:100,500 - file between 100 and 500 pixels high

Wikibase-пошук

Розширення Wikibase визнача? деяк? ключов? слова для пошуку, щоб полегшити пошук певних елемент?в Wikibase. Це корисно на Wikidata та ?нших сайтах Wikibase, зокрема для пошуку зображень ?з Структурован? дан? на В?к?сховище . Подробиц? див. у Help:WikibaseCirrusSearch .

Результати пошуку в ?нших в?к?-проектах (?крос-в?к??)

There are two kinds of cross-wiki results that may be shown when searching on Wikipedia.

Cross-project search (also known as interwiki search, sister search, or sister projects search) shows additional results from other projects (Wiktionary, Wikisource, Wikiquote, etc.) shown to the side on the Wikipedia results page. Cross-project search is available on most Wikipedias with sister projects.

Cross-language search (see blog post) refers to additional results shown below the main results that are from a Wikipedia in a different language. Cross-language search uses a heavily modified and optimized version of a light-weight language detector called TextCat . Cross-language search is currently only available on a few Wikipedias (see TextCat link for details).

Explicit sort orders

In addition to the default relevance based sort, CirrusSearch can provide results using a few other explicit sort orders. Specifying a sorting order other than relevance will disable all search keywords that affect scoring, such as prefer-recent or boost-templates. The keywords will still be parsed, but they will have no effect.

Sorting options are currently available from the MediaWiki API by providing the srsort parameter.

Guidance:

Sorting options can be manually added to a search URL by adding &sort=order, for example:

Valid sort orders include:

&sort=incoming_links_asc
Lowest to highest number of incoming links. This is approximately from least to most popular.
&sort=incoming_links_desc
Highest to lowest number of incoming links. This is approximately from most to least popular.
&sort=last_edit_asc
From least recently to most recently edited
&sort=last_edit_desc
From most to least recently edited
&sort=create_timestamp_asc
From least to most recently created
&sort=create_timestamp_desc
From most to least recently created
&sort=just_match
A simple relevance sort based only on text matching
&sort=relevance
A relevance sort taking into account many features of the document
&sort=random
Randomized
&sort=none
Unsorted, arbitrarily ordered lists. Preferred for large result sets.


?нтерфейс для розширених параметр?в

Advanced Search Interface

The AdvancedSearch extension adds an improved interface to the search page allowing the use of several options described above in a user-friendly manner. See here for the user manual.

Див. також

Зовн?шн? посилання

Прим?тки й посилання

  1. Зверн?ть увагу, що п?дзаголовок сайту (tagline) не ? частиною власне контенту. Щоб побачити, що на стор?нц? ? вм?стом, який можна шукати, додайте до URL ?action=cirrusdump.
  2. Stop words are rarely called for in CirrusSearch, except for when they are in certain kinds of phrases, as explained below.
  3. CirrusSearch parameters do not use a consistent way to handle these search terms.
  4. The same analyzer used to index the wikitext is also used to interpret the query.
  5. For example, common terms on this wiki, MediaWiki.org, are, redundantly, (searched):
    • udp2log or udp2log2 (though the extra 2 will affect ranking)
    • html2wt or wt2html
    • log2ip or ip2log

    There's test2wiki, wiki2xml, wiki2dict, apache2handler, apache2ctl, etc.

  6. CirrusSearch regex do not address the newline character directly, but a dot . will match a newline.
  7. A slow regex search cannot disable search, but can disable another's regex search, since there are only a limited number of regex searches allowed at a time.
  8. Prefix does not match on first-characters of fullpagenames, so you cannot search two namespaces at once just because they start with the same letters, such as both namespace and namespace talk in one query.
  9. For the formal definition see the Lucene grammar for regular expressions.
  10. Class RegExp, Lucene RegExp syntax
  11. To exclude the tabulation character as well, copy it and add it to the character set.
辟邪剑谱和葵花宝典有什么关系 天赦日是什么意思 神经酰胺是什么 桃子不能和什么食物一起吃 晒伤用什么
什么是微商 罗汉果有什么功效 放纵什么意思 看见乌鸦有什么预兆 什么是银屑病
甲状腺看什么科 霉菌性阴道炎是什么 孕早期有什么症状 王朝马汉是什么意思 广东人吃什么
祭日和忌日是什么意思 水痘能吃什么食物 左心房扩大是什么意思 什么样的房子不能住人脑筋急转弯 2024是什么年
cip号是什么hcv9jop6ns1r.cn bp是什么职位hcv8jop4ns4r.cn 棱长是什么hcv7jop5ns4r.cn 什么时机塞给医生红包hcv9jop1ns9r.cn 三省吾身是什么意思hcv8jop8ns0r.cn
手串断了寓意什么hcv9jop5ns5r.cn 失聪是什么原因造成的hcv8jop3ns8r.cn 霉菌性阴道炎是什么weuuu.com 恶心想吐胃不舒服是什么原因hcv8jop5ns2r.cn 桂枝和肉桂有什么区别hcv8jop8ns3r.cn
舌吻什么感觉chuanglingweilai.com 水嘴是什么hcv7jop9ns5r.cn 算五行缺什么免费测试hcv7jop9ns9r.cn 什么是豹子号hcv8jop3ns4r.cn 什么是节气hcv9jop1ns1r.cn
巳火是什么火hcv8jop3ns1r.cn 雨五行属什么hcv8jop0ns0r.cn 腰肌劳损是什么症状hcv9jop3ns6r.cn 为什么一到晚上就咳嗽imcecn.com 胖头鱼又叫什么鱼hcv9jop6ns8r.cn
百度