Skip to content

Commit 2bac736

Browse files
committed
add mecab test
1 parent d3e2420 commit 2bac736

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

nix/tests/expected/pgroonga.out

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ values
5353
-- Create default index
5454
create index pgroonga_index on v.roon using pgroonga (content);
5555
-- Create mecab tokenizer index since we had a bug with this one once
56-
create index pgroonga_index on v.roon using pgroonga (content) with (tokenizer='TokenMecab');
57-
ERROR: relation "pgroonga_index" already exists
56+
create index pgroonga_index_mecab on v.roon using pgroonga (content) with (tokenizer='TokenMecab');
5857
-- Run some queries to test the index
5958
select * from v.roon where content &@~ 'Hello';
6059
id | content

nix/tests/sql/pgroonga.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ values
3737
create index pgroonga_index on v.roon using pgroonga (content);
3838

3939
-- Create mecab tokenizer index since we had a bug with this one once
40-
create index pgroonga_index on v.roon using pgroonga (content) with (tokenizer='TokenMecab');
40+
create index pgroonga_index_mecab on v.roon using pgroonga (content) with (tokenizer='TokenMecab');
4141

4242
-- Run some queries to test the index
4343
select * from v.roon where content &@~ 'Hello';

0 commit comments

Comments
 (0)