雷公根有什么功效| 肌酐高是什么意思| 姑姑叫我什么| 安陵容为什么恨甄嬛| 浪子是什么意思| 唇釉是什么| 梦见自己拉粑粑是什么意思| 子宫囊肿是什么原因引起的| 九宫是什么意思| 会车什么意思| 作灶什么意思| 过敏性结膜炎用什么药| 心肌供血不足吃什么| 女生什么时候是排卵期| 什么的童年| 耳浴10分钟什么意思| 什么叫根管治疗牙齿| 卧推80公斤什么水平| 聊表心意是什么意思| qty什么意思| 泡奶粉用什么水最好| rv是什么品牌| 避重就轻什么意思| 10月出生是什么星座| 五险一金的一金是什么| 男生回复嗯嗯代表什么| 附件炎用什么药最好| 抠鼻表情是什么意思| 女性尿道出血是什么原因引起的| 农历4月14日是什么星座| 过早是什么意思| 马可以加什么偏旁| 5月26号什么星座| 妇科病有什么症状| 八月三号什么星座| 左侧卵巢囊性包块是什么意思| 瓜皮什么意思| 小孩嗓子哑了吃什么药| 薄荷叶泡水喝有什么好处| 牙龈发炎肿痛吃什么药| 什么颜色显瘦| hpv感染什么症状| 后入是什么意思| 金牛男喜欢什么样的女生| 消炎吃什么药| 葡萄什么季节成熟| 女人吃什么增加雌激素| 手指上长毛是什么原因| 一个口一个且念什么字| 问诊是什么意思| 咖啡是什么| 法院是什么机关| 糟老头是什么意思| 下肢血液循环不好吃什么药| 无极是什么意思| 膝盖凉是什么原因| 打日本电话前面加什么| 腊排骨炖什么好吃| 飞机什么时候停止登机| 膝关节弹响是什么原因| 病毒性感染是什么原因| 中药龙骨是什么东西| 妇科支原体感染吃什么药| 咳嗽吃什么药好得快| 代销商是什么意思| 干燥综合症是什么病| 射手座跟什么星座最配| 精液长什么样| 西游记有什么故事| 为什么不建议治疗幽门螺杆菌| 什么原因会导致尿路感染| 什么是核素| 引流是什么意思| 胶体是什么| 雍正为什么不杀十阿哥| 什么是漏斗胸| 引以为傲是什么意思| 老打饱嗝是什么原因| 血小板低有什么危险| 男人得了hpv有什么症状| 一个月小猫吃什么| 降压药什么药好| 车牌号选什么数字吉利| edt是什么时间| 吃什么水果补肝养肝最有效| 道理是什么意思| 被隐翅虫咬了涂什么药| 百无一用是什么意思| 3月7日是什么星座| 七月13号是什么星座| 塑料水杯什么材质好| 什么叫释怀| 吃的少还胖什么原因| bp在医学上是什么意思| 拉稀吃什么| 7.12是什么星座| 什么是姑息治疗| 高丽参是什么参| 佐餐是什么意思| 以至于是什么意思| 脑子萎缩是什么原因造成的| 苏字五行属什么| 疏肝理气是什么意思| 阿斯利康是什么药| 头皮屑大块是什么原因| 榴莲什么时间段吃最好| 湿疹吃什么水果好| 雀舌是什么茶| 射精出血是什么原因| 晚上入睡困难是什么原因| 吃饭睡觉打豆豆是什么意思| bj什么意思| 孕妇梦见下雪是什么征兆| 打强心针意味着什么| 南非叶主治什么病| 市组织部长是什么级别| 植树节是什么季节| 梦到别人怀孕是什么意思| 不动明王是什么属相的本命佛| 双子座什么性格| 玳瑁是什么| 便溏是什么原因引起的| 肝火旺有什么症状| 性质是什么| 肝吸虫病有什么症状| 子宫小是什么原因引起的| 伸筋草长什么样子| 爱出汗是什么原因女人| 颔是什么意思| 宝贝什么意思| cdr是什么意思| 1981年是什么年| 沂字五行属什么| 梦见走错路是什么意思| 挚肘是什么意思| 小米配什么熬粥最好| 手脱皮擦什么药膏| 永加日念什么| 今夕何夕什么意思| 胃炎不能吃什么| 男人要吃什么才能壮阳| 淋巴组织增生是什么意思| 贤妻良母是什么意思| 十年结婚是什么婚| 眼睛晶体是什么| 懵圈是什么意思| 心脏不好吃什么| 什么叫便溏| 秘诀是什么意思| 僵尸是什么意思| 胆汁淤积吃什么药| 淘米水洗脸有什么作用与功效| 吃什么提神醒脑抗疲劳| 飞蚊症用什么药| 吃什么可以来月经最快最有效| zxj是什么意思| 黄体酮不足吃什么| 什么叫盗汗| 吃什么可以长头发| 父亲ab型母亲o型孩子什么血型| 耳朵前面有痣代表什么| 6月份怀孕预产期是什么时候| 内热是什么原因引起的怎么调理| 奠基什么意思| 什么是静脉血栓| 阴虱用什么药| 时来运转是什么意思| 男人做梦梦到蛇是什么意思| 大姨妈期间同房有什么影响| 铁蛋白低是什么意思| 遗传代谢病是什么意思| 老化是什么意思| 孙权字什么| 梦见摘杏子是什么意思| 言外之意什么意思| 菊花茶适合什么人喝| 420是什么意思| 产后腰疼是什么原因| 荨麻疹什么原因引起的| 胸口有痣代表什么意思| 茹字五行属什么| 腱鞘炎看什么科| 扫货是什么意思| 冬至是什么时候| 非诚勿扰什么意思| 葡萄什么时候传入中国| 洞房花烛是什么生肖| 前列腺炎挂什么科| 薄荷泡水喝有什么好处| 胰腺在人体起什么作用| 戴帽子是什么意思| 为什么邓超对鹿晗很好| l1椎体在什么位置| 冠脉造影是什么意思| 马不停蹄是什么生肖| 1969年什么时候退休| 什么孕妇容易怀脑瘫儿| 抗结剂对人有什么伤害| 93年属什么的| 月经先期是什么意思| 大便里急后重什么意思| 华山在什么地方| 马眼是什么| 天牛喜欢吃什么| 相向是什么意思| 四面八方是什么意思| 尿路感染是什么原因引起的| 业火是什么意思| 喝竹叶水有什么好处| 哭笑不得是什么意思| 母女丼什么意思| 什么星空| 鱼腥草不能和什么一起吃| 86岁属什么生肖| 屎忽鬼是什么意思| 水浒传主要讲了什么| 厨子什么意思| 入定是什么意思| 曹仁和曹操什么关系| 血压低压高是什么原因造成的| 属鸡的和什么属相最配| 被螨虫咬了非常痒用什么药膏好| 龟头上抹什么可以延时| 2006年是什么命| 小t是什么意思| 左枕前位是什么意思| 绿茶是什么茶| 什么是激素类药物| 燃气灶什么品牌好| 姜什么时候种植最好| 离宫是什么意思| 副支队长是什么级别| 世界上什么东西最大| jc是什么牌子| apgar评分是什么意思| 两个方一个土是什么字| 安痛定又叫什么名字| 什么的山坡| 肺炎为什么要7到10天才能好| 得了肠胃炎吃什么最好| 日龙包是什么意思| 子女缘薄是什么意思| 什么油锯好| 房产证改名字需要什么手续| 2008属什么生肖| 江西有什么好玩的| 蛇盘疮吃什么药好得快| 杰字属于五行属什么| 壁虎吃什么食物| 幻听是什么症状| 感冒挂什么科室| 为什么会感染幽门螺杆菌| 喝苹果醋有什么好处和坏处| 黑热病是什么病| 考研都考什么科目| 长期吃泡面有什么危害| 梦见挖坟墓预示什么| 屁的成分是什么气体| 爱是什么颜色| 扁桃体肿大吃什么药好| 眼花缭乱的意思是什么| 木节念什么| 婴儿足底血筛查什么| 风湿性关节炎什么症状| 百度

《中国记者》杂志

百度 尽量选择合理的户型来看。

The searchindex table is used to provide full text searches . Before MySQL 5.6, full text indexes were only provided by the MyISAM table engine, but not by InnoDB. The text table however uses the InnoDB type to improve concurrency, so a copy of the current page text was required in order to make use of these indexes. This is the reason why this table is there. If using Postgres, this table does not exist: the full text information is stored directly in the page and pagecontent tables as the titlevector and textvector columns.

This table is populated when edits are saved on pages, unless $wgDisableSearchUpdate is set to true, or an extension that implements its own search index (like CirrusSearch extension) is installed. The rebuildtextindex.php maintenance script can be used to populate it from scratch, or updateSearchIndex.php to update it for recently changed pages.

Fields

edit

si_page

edit

Key to page_id .

si_title

edit

Munged version of page title.

si_text

edit

Munged version of the current text of the page.

Details

edit

Indexes for this, using en wikipedia for cardinality:

+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
| Table       | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |
+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
| searchindex |          0 | si_page  |            1 | si_page     | A         |      797275 |     NULL | NULL   |      | BTREE      |         |
| searchindex |          1 | si_title |            1 | si_title    | A         |      265758 |     NULL | NULL   |      | FULLTEXT   |         |
+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+

A common search query is of the form:

SELECT page_id, page_namespace, page_title FROM `page`,`searchindex`
WHERE page_id=si_page
AND MATCH(si_text) AGAINST('+''searchterm''' IN BOOLEAN MODE)
AND page_is_redirect=0
AND page_namespace IN (0)
LIMIT 20

In MediaWiki version 1.4 and earlier:

SELECT cur_id,cur_namespace,cur_title,cur_text FROM cur,searchindex
WHERE cur_id=si_page
AND (
  MATCH(si_text) AGAINST('+''searchterm''' IN BOOLEAN MODE)
  AND cur_is_redirect=0
)
AND cur_namespace IN (0,9,11)
LIMIT 0, 20;

Explain shows the following:

+-------------+--------+-------------------------------------------+---------------+---------+------------+--------+-------------+
| table       | type   | possible_keys                             | key           | key_len | ref        | rows   | Extra       |
+-------------+--------+-------------------------------------------+---------------+---------+------------+--------+-------------+
| cur         | range  | cur_id,cur_namespace,name_title_timestamp | cur_namespace |       1 | NULL       | 317499 | Using where |
| searchindex | eq_ref | si_page                                   | si_page       |       4 | cur.cur_id |      1 | Using where |
+-------------+--------+-------------------------------------------+---------------+---------+------------+--------+-------------+

Known problems

edit

A range scan with namespaces containing a large number of records requires that a large portion of the searchindex table be loaded into RAM. This is very costly, in part because the searchindex table contains the full text of the article. A long term plan is to remove the text from the searchindex table. Temporary measures may involve adding fields to searchindex and indexing them (and using a self join to allow both that index and the fulltext index to be used) or adding a searchindex index to decrease the number of complete searchindex records which must be read to match the query.

Schema summary

edit
MediaWiki version:
1.43

DESCRIBE searchindex;

+----------+------------------+------+-----+---------+-------+
| Field    | Type             | Null | Key | Default | Extra |
+----------+------------------+------+-----+---------+-------+
| si_page  | int(10) unsigned | NO   | PRI | NULL    |       |
| si_title | mediumtext       | NO   | MUL | NULL    |       |
| si_text  | mediumtext       | NO   | MUL | NULL    |       |
+----------+------------------+------+-----+---------+-------+
MediaWiki versions:
1.10 – 1.42

DESCRIBE searchindex;

+----------+------------------+------+-----+---------+-------+
| Field    | Type             | Null | Key | Default | Extra |
+----------+------------------+------+-----+---------+-------+
| si_page  | int(10) unsigned | NO   | PRI | NULL    |       |
| si_title | varchar(255)     | NO   | MUL |         |       |
| si_text  | mediumtext       | NO   | MUL | NULL    |       |
+----------+------------------+------+-----+---------+-------+
MediaWiki versions:
1.1 – 1.9

DESCRIBE searchindex;

+----------+-----------------+------+-----+---------+-------+
| Field    | Type            | Null | Key | Default | Extra |
+----------+-----------------+------+-----+---------+-------+
| si_page  | int(8) unsigned | NO   | PRI | NULL    |       |
| si_title | varchar(255)    | NO   | MUL | NULL    |       |
| si_text  | mediumtext      | NO   | MUL | NULL    |       |
+----------+-----------------+------+-----+---------+-------+

Indexes

edit
MediaWiki version:
1.43

SHOW INDEX IN searchindex;

+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table       | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| searchindex |          0 | PRIMARY  |            1 | si_page     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| searchindex |          1 | si_title |            1 | si_title    | NULL      |        NULL |     NULL | NULL   |      | FULLTEXT   |         |               |
| searchindex |          1 | si_text  |            1 | si_text     | NULL      |        NULL |     NULL | NULL   |      | FULLTEXT   |         |               |
+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
力争是什么意思 宫颈糜烂吃什么药 磨盘有什么风水说法 浮粉是什么原因引起的 117是什么电话
葬爱家族是什么意思 刀郎和那英是什么关系 过敏了吃什么药好 电是什么时候发明的 什么茶女人长期喝最好
心脏供血不足是什么原因引起的 固执的人是什么性格 有人的地方就有江湖什么意思 五海瘿瘤丸主要治什么病 献完血吃什么东西补血
第三代试管是什么意思 官方翻新机是什么意思 1962属什么生肖 为道日损什么意思 离子水是什么水
海啸是什么hcv9jop8ns2r.cn 小儿流清鼻涕吃什么药效果好qingzhougame.com 丸美属于什么档次hcv9jop6ns9r.cn 什么是乳酸堆积hcv9jop2ns2r.cn 丹参是什么样子hcv9jop5ns7r.cn
知柏地黄丸对男性功能有什么帮助hcv8jop0ns7r.cn 肝气郁结吃什么中成药hcv9jop0ns3r.cn 什么鱼蛋白质含量高wuhaiwuya.com 小蜜蜂是什么牌子cj623037.com 唐宝是什么意思hcv9jop2ns4r.cn
大便有酸味是什么原因hcv8jop5ns2r.cn 焦虑症吃什么药好得快hcv8jop1ns7r.cn 小孩子口臭是什么原因travellingsim.com 胸口闷堵是什么原因jinxinzhichuang.com 梦见自己掉头发是什么征兆0735v.com
女性肝阳上亢吃什么药hcv8jop9ns4r.cn 婴儿眉毛上黄痂是什么hcv9jop4ns8r.cn 甲醛闻多了有什么症状hcv9jop5ns8r.cn 两岁宝宝拉肚子吃什么药hcv9jop0ns9r.cn 多吃苹果有什么好处hcv8jop9ns2r.cn
百度