Navigation Menu

Skip to content

Commit

Permalink
Use "match" for "%%" and "query" for "@@"
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 28, 2015
1 parent 61afdbf commit 7122994
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 24 deletions.
5 changes: 3 additions & 2 deletions expected/full-text-search/text/single/match/bitmapscan.out
Expand Up @@ -11,10 +11,11 @@ SET enable_indexscan = off;
SET enable_bitmapscan = on;
SELECT id, content
FROM memos
WHERE content @@ 'groonga postgresql';
WHERE content %% 'Groonga';
id | content
----+-------------------------------------------------------
2 | Groonga is fast full text search engine.
3 | PGroonga is a PostgreSQL extension that uses Groonga.
(1 row)
(2 rows)

DROP TABLE memos;
5 changes: 3 additions & 2 deletions expected/full-text-search/text/single/match/indexscan.out
Expand Up @@ -11,10 +11,11 @@ SET enable_indexscan = on;
SET enable_bitmapscan = off;
SELECT id, content
FROM memos
WHERE content @@ 'groonga postgresql';
WHERE content %% 'Groonga';
id | content
----+-------------------------------------------------------
2 | Groonga is fast full text search engine.
3 | PGroonga is a PostgreSQL extension that uses Groonga.
(1 row)
(2 rows)

DROP TABLE memos;
6 changes: 3 additions & 3 deletions expected/full-text-search/text/single/match/seqscan.out
@@ -1,4 +1,3 @@
SET search_path = "$user",public,pgroonga,pg_catalog;
CREATE TABLE memos (
id integer,
content text
Expand All @@ -12,10 +11,11 @@ SET enable_indexscan = off;
SET enable_bitmapscan = off;
SELECT id, content
FROM memos
WHERE content @@ 'groonga postgresql';
WHERE content %% 'Groonga';
id | content
----+-------------------------------------------------------
2 | Groonga is fast full text search engine.
3 | PGroonga is a PostgreSQL extension that uses Groonga.
(1 row)
(2 rows)

DROP TABLE memos;
Expand Up @@ -11,11 +11,10 @@ SET enable_indexscan = off;
SET enable_bitmapscan = on;
SELECT id, content
FROM memos
WHERE content %% 'Groonga';
WHERE content @@ 'groonga postgresql';
id | content
----+-------------------------------------------------------
2 | Groonga is fast full text search engine.
3 | PGroonga is a PostgreSQL extension that uses Groonga.
(2 rows)
(1 row)

DROP TABLE memos;
Expand Up @@ -11,11 +11,10 @@ SET enable_indexscan = on;
SET enable_bitmapscan = off;
SELECT id, content
FROM memos
WHERE content %% 'Groonga';
WHERE content @@ 'groonga postgresql';
id | content
----+-------------------------------------------------------
2 | Groonga is fast full text search engine.
3 | PGroonga is a PostgreSQL extension that uses Groonga.
(2 rows)
(1 row)

DROP TABLE memos;
@@ -1,3 +1,4 @@
SET search_path = "$user",public,pgroonga,pg_catalog;
CREATE TABLE memos (
id integer,
content text
Expand All @@ -11,11 +12,10 @@ SET enable_indexscan = off;
SET enable_bitmapscan = off;
SELECT id, content
FROM memos
WHERE content %% 'Groonga';
WHERE content @@ 'groonga postgresql';
id | content
----+-------------------------------------------------------
2 | Groonga is fast full text search engine.
3 | PGroonga is a PostgreSQL extension that uses Groonga.
(2 rows)
(1 row)

DROP TABLE memos;
2 changes: 1 addition & 1 deletion sql/full-text-search/text/single/match/bitmapscan.sql
Expand Up @@ -15,6 +15,6 @@ SET enable_bitmapscan = on;

SELECT id, content
FROM memos
WHERE content @@ 'groonga postgresql';
WHERE content %% 'Groonga';

DROP TABLE memos;
2 changes: 1 addition & 1 deletion sql/full-text-search/text/single/match/indexscan.sql
Expand Up @@ -15,6 +15,6 @@ SET enable_bitmapscan = off;

SELECT id, content
FROM memos
WHERE content @@ 'groonga postgresql';
WHERE content %% 'Groonga';

DROP TABLE memos;
4 changes: 1 addition & 3 deletions sql/full-text-search/text/single/match/seqscan.sql
@@ -1,5 +1,3 @@
SET search_path = "$user",public,pgroonga,pg_catalog;

CREATE TABLE memos (
id integer,
content text
Expand All @@ -17,6 +15,6 @@ SET enable_bitmapscan = off;

SELECT id, content
FROM memos
WHERE content @@ 'groonga postgresql';
WHERE content %% 'Groonga';

DROP TABLE memos;
Expand Up @@ -15,6 +15,6 @@ SET enable_bitmapscan = on;

SELECT id, content
FROM memos
WHERE content %% 'Groonga';
WHERE content @@ 'groonga postgresql';

DROP TABLE memos;
Expand Up @@ -15,6 +15,6 @@ SET enable_bitmapscan = off;

SELECT id, content
FROM memos
WHERE content %% 'Groonga';
WHERE content @@ 'groonga postgresql';

DROP TABLE memos;
@@ -1,3 +1,5 @@
SET search_path = "$user",public,pgroonga,pg_catalog;

CREATE TABLE memos (
id integer,
content text
Expand All @@ -15,6 +17,6 @@ SET enable_bitmapscan = off;

SELECT id, content
FROM memos
WHERE content %% 'Groonga';
WHERE content @@ 'groonga postgresql';

DROP TABLE memos;

0 comments on commit 7122994

Please sign in to comment.