0
我安裝MariaDB的-10.0.9蜘蛛-3.2-VP-1.1-mroonga - 4.0在Ubuntu的服務器爲什麼第二個查詢有關mairadb +蜘蛛無效+ mroonga
我在瑪麗亞DB1約MACHINE1
創建表enter code here
MariaDB [think_db]> CREATE TABLE IF NOT EXISTS text1 (
id int (10) unsigned NOT NULL AUTO_INCREMENT,
title text NOT NULL ,
text LongText NOT NULL ,
PRIMARY KEY (id),
FULLTEXT INDEX (text) COMMENT 'parser "TokenUnigram"'
) ENGINE = mroonga DEFAULT CHARSET = utf8 AUTO_INCREMENT = 1;
查詢OK,0行的影響(0.40秒)
我在Maria DB2大約機2創建表
MariaDB [think_db]> CREATE TABLE IF NOT EXISTS text2 (
id int (10) unsigned NOT NULL AUTO_INCREMENT,
title text NOT NULL ,
text LongText NOT NULL ,
PRIMARY KEY (id),
FULLTEXT INDEX (text) COMMENT 'parser "TokenUnigram"'
) ENGINE = mroonga DEFAULT CHARSET = utf8 AUTO_INCREMENT = 1;
查詢OK,0行的影響(0.43秒)
我在蜘蛛創建表約machine3
MariaDB [think_db]> CREATE TABLE IF NOT EXISTS texts (
id int (10) unsigned NOT NULL AUTO_INCREMENT,
title text NOT NULL ,
text LongText NOT NULL ,
PRIMARY KEY (id),
FULLTEXT INDEX (text) COMMENT 'parser "TokenUnigram"'
) ENGINE = SPIDER
PARTITION BY RANGE (id) (
PARTITION P1 VALUES LESS THAN (10) COMMENT 'host "XX.XX.XX.XX", port "3306", user "think_user", password "think88", database "think_db", table "text1"' ,
PARTITION p2 VALUES LESS THAN (20) COMMENT 'host "XX.XX.XX.XX", port "4000", user "think_user", password "think88", database "think_db", table "text2"'
->);
查詢OK,0行的影響(0.06秒)
我插入兩條記錄..
MariaDB [think_db]> insert into texts(title, text) values('Auhui','abcd') ;
查詢行,1行受影響(0.03秒)
MariaDB [think_db]> insert into texts(title, text) values('Auhui','edfg') ;
查詢行,1行受影響(0.00秒)
第一查詢發送.. ==>確定
MariaDB [think_db]> SELECT id, title, text FROM texts WHERE MATCH (text) AGAINST ("abcd" IN BOOLEAN MODE) limit 100;
+----+-------+------+
| id | title | text |
+----+-------+------+
| 2 | Auhui | abcd |
+----+-------+------+
1行集(0.01秒)
我查詢相同的查詢... 第二查詢無效... =>爲什麼無效...
MariaDB [think_db]> SELECT id, title, text FROM texts WHERE MATCH (text) AGAINST ("abcd" IN BOOLEAN MODE) limit 100;
+----+-------+----------------+
| id | title | text |
+----+-------+----------------+
| 2 | Auhui | abcd |
| 3 | Auhui | edfg | <=why return..
+----+-------+----------------+