-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added regression test for the dictionary setup
- Loading branch information
Showing
9 changed files
with
85 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- | ||
-- Test italian_fts configuration | ||
-- | ||
select token, dictionary, lexemes | ||
from ts_debug('italian_ispell', $$ | ||
Né più mai toccherò le sacre sponde | ||
ove il mio corpo fanciulletto giacque, | ||
Zacinto mia, che te specchi nell'onde | ||
del greco mar da cui vergine nacque | ||
... | ||
$$) | ||
where array_upper(lexemes,1) <> 0; | ||
token | dictionary | lexemes | ||
--------------+----------------+---------------- | ||
più | italian_ispell | {più} | ||
mai | italian_ispell | {mai} | ||
toccherò | italian_ispell | {toccare} | ||
sacre | italian_ispell | {sacro} | ||
sponde | italian_ispell | {sponda} | ||
ove | italian_ispell | {ove} | ||
corpo | italian_ispell | {corpo} | ||
fanciulletto | italian_ispell | {fanciulletto} | ||
giacque | italian_ispell | {giacere} | ||
Zacinto | italian_stem | {zacint} | ||
specchi | italian_ispell | {specchiare} | ||
onde | italian_ispell | {onda} | ||
greco | italian_ispell | {greco} | ||
mar | italian_ispell | {mare} | ||
vergine | italian_ispell | {vergine} | ||
nacque | italian_ispell | {nascere} | ||
(16 rows) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SET client_min_messages = warning; | ||
\set ECHO none | ||
RESET client_min_messages; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SET client_min_messages = warning; | ||
\set ECHO none | ||
RESET client_min_messages; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- | ||
-- Test italian_fts configuration | ||
-- | ||
|
||
select token, dictionary, lexemes | ||
from ts_debug('italian_ispell', $$ | ||
Né più mai toccherò le sacre sponde | ||
ove il mio corpo fanciulletto giacque, | ||
Zacinto mia, che te specchi nell'onde | ||
del greco mar da cui vergine nacque | ||
... | ||
$$) | ||
where array_upper(lexemes,1) <> 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SET client_min_messages = warning; | ||
\set ECHO none | ||
-- The above turn off echoing so that expected file | ||
-- does not depend on contents of the setup file. | ||
|
||
-- Setup the extension on PostgreSQL 9.1 | ||
|
||
|
||
CREATE EXTENSION italian_fts; | ||
|
||
\set ECHO all | ||
RESET client_min_messages; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SET client_min_messages = warning; | ||
\set ECHO none | ||
-- The above turn off echoing so that expected file | ||
-- does not depend on contents of the setup file. | ||
|
||
-- Setup the extension on PostgreSQL before 9.1 | ||
|
||
\i italian_fts.sql | ||
|
||
\set ECHO all | ||
RESET client_min_messages; | ||
|