Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
394 additions
and
0 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
33 changes: 33 additions & 0 deletions
33
test/command/suite/select/function/highlight/default.expected
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,33 @@ | ||
table_create Entries TABLE_NO_KEY | ||
[[0,0.0,0.0],true] | ||
column_create Entries body COLUMN_SCALAR ShortText | ||
[[0,0.0,0.0],true] | ||
load --table Entries | ||
[ | ||
{"body": "<b>Rroonga</b> is a Ruby binding of Groonga."} | ||
] | ||
[[0,0.0,0.0],1] | ||
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>" )' --command_version 2 | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
1 | ||
], | ||
[ | ||
[ | ||
"highlight", | ||
"null" | ||
] | ||
], | ||
[ | ||
"<b>Rroonga</b> is a Ruby binding of <span class=\"keyword1\">Groonga</span>." | ||
] | ||
] | ||
] | ||
] |
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 @@ | ||
table_create Entries TABLE_NO_KEY | ||
column_create Entries body COLUMN_SCALAR ShortText | ||
|
||
load --table Entries | ||
[ | ||
{"body": "<b>Rroonga</b> is a Ruby binding of Groonga."} | ||
] | ||
|
||
select Entries --output_columns \ | ||
'highlight(body, \ | ||
"groonga", "<span class=\\"keyword1\\">", "</span>" \ | ||
)' --command_version 2 |
33 changes: 33 additions & 0 deletions
33
test/command/suite/select/function/highlight/default_tag.expected
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,33 @@ | ||
table_create Entries TABLE_NO_KEY | ||
[[0,0.0,0.0],true] | ||
column_create Entries body COLUMN_SCALAR ShortText | ||
[[0,0.0,0.0],true] | ||
load --table Entries | ||
[ | ||
{"body": "Mroonga is a MySQL storage engine based on Groonga."} | ||
] | ||
[[0,0.0,0.0],1] | ||
select Entries --output_columns 'highlight(body, "Groonga", "Mroonga", {"default_open_tag": "<span>", "default_close_tag": "</span>"} )' --command_version 2 | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
1 | ||
], | ||
[ | ||
[ | ||
"highlight", | ||
"null" | ||
] | ||
], | ||
[ | ||
"<span>Mroonga</span> is a MySQL storage engine based on <span>Groonga</span>." | ||
] | ||
] | ||
] | ||
] |
13 changes: 13 additions & 0 deletions
13
test/command/suite/select/function/highlight/default_tag.test
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 @@ | ||
table_create Entries TABLE_NO_KEY | ||
column_create Entries body COLUMN_SCALAR ShortText | ||
|
||
load --table Entries | ||
[ | ||
{"body": "Mroonga is a MySQL storage engine based on Groonga."} | ||
] | ||
|
||
select Entries --output_columns \ | ||
'highlight(body, \ | ||
"Groonga", "Mroonga", \ | ||
{"default_open_tag": "<span>", "default_close_tag": "</span>"} \ | ||
)' --command_version 2 |
33 changes: 33 additions & 0 deletions
33
test/command/suite/select/function/highlight/html_escape.expected
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,33 @@ | ||
table_create Entries TABLE_NO_KEY | ||
[[0,0.0,0.0],true] | ||
column_create Entries body COLUMN_SCALAR ShortText | ||
[[0,0.0,0.0],true] | ||
load --table Entries | ||
[ | ||
{"body": "<b>Rroonga</b> is a Ruby binding of Groonga."} | ||
] | ||
[[0,0.0,0.0],1] | ||
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>", {"html_escape": true} )' --command_version 2 | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
1 | ||
], | ||
[ | ||
[ | ||
"highlight", | ||
"null" | ||
] | ||
], | ||
[ | ||
"<b>Rroonga</b> is a Ruby binding of <span class=\"keyword1\">Groonga</span>." | ||
] | ||
] | ||
] | ||
] |
13 changes: 13 additions & 0 deletions
13
test/command/suite/select/function/highlight/html_escape.test
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 @@ | ||
table_create Entries TABLE_NO_KEY | ||
column_create Entries body COLUMN_SCALAR ShortText | ||
|
||
load --table Entries | ||
[ | ||
{"body": "<b>Rroonga</b> is a Ruby binding of Groonga."} | ||
] | ||
|
||
select Entries --output_columns \ | ||
'highlight(body, \ | ||
"groonga", "<span class=\\"keyword1\\">", "</span>", \ | ||
{"html_escape": true} \ | ||
)' --command_version 2 |
33 changes: 33 additions & 0 deletions
33
test/command/suite/select/function/highlight/no_normalizer.expected
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,33 @@ | ||
table_create Entries TABLE_NO_KEY | ||
[[0,0.0,0.0],true] | ||
column_create Entries body COLUMN_SCALAR ShortText | ||
[[0,0.0,0.0],true] | ||
load --table Entries | ||
[ | ||
{"body": "PGroonga is a PostgreSQL plugin to use groonga as index."} | ||
] | ||
[[0,0.0,0.0],1] | ||
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>", {"normalizer": ""} )' --command_version 2 | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
1 | ||
], | ||
[ | ||
[ | ||
"highlight", | ||
"null" | ||
] | ||
], | ||
[ | ||
"PGroonga is a PostgreSQL plugin to use <span class=\"keyword1\">groonga</span> as index." | ||
] | ||
] | ||
] | ||
] |
13 changes: 13 additions & 0 deletions
13
test/command/suite/select/function/highlight/no_normalizer.test
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 @@ | ||
table_create Entries TABLE_NO_KEY | ||
column_create Entries body COLUMN_SCALAR ShortText | ||
|
||
load --table Entries | ||
[ | ||
{"body": "PGroonga is a PostgreSQL plugin to use groonga as index."} | ||
] | ||
|
||
select Entries --output_columns \ | ||
'highlight(body, \ | ||
"groonga", "<span class=\\"keyword1\\">", "</span>", \ | ||
{"normalizer": ""} \ | ||
)' --command_version 2 |
33 changes: 33 additions & 0 deletions
33
test/command/suite/select/function/highlight/normalizer.expected
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,33 @@ | ||
table_create Entries TABLE_NO_KEY | ||
[[0,0.0,0.0],true] | ||
column_create Entries body COLUMN_SCALAR ShortText | ||
[[0,0.0,0.0],true] | ||
load --table Entries | ||
[ | ||
{"body": "PGroonga is a PostgreSQL plugin to use groonga as index."} | ||
] | ||
[[0,0.0,0.0],1] | ||
select Entries --output_columns 'highlight(body, "groonga", "<span class=\\"keyword1\\">", "</span>", {"normalizer": "NormalizerAuto"} )' --command_version 2 | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
1 | ||
], | ||
[ | ||
[ | ||
"highlight", | ||
"null" | ||
] | ||
], | ||
[ | ||
"P<span class=\"keyword1\">Groonga</span> is a PostgreSQL plugin to use <span class=\"keyword1\">groonga</span> as index." | ||
] | ||
] | ||
] | ||
] |
13 changes: 13 additions & 0 deletions
13
test/command/suite/select/function/highlight/normalizer.test
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 @@ | ||
table_create Entries TABLE_NO_KEY | ||
column_create Entries body COLUMN_SCALAR ShortText | ||
|
||
load --table Entries | ||
[ | ||
{"body": "PGroonga is a PostgreSQL plugin to use groonga as index."} | ||
] | ||
|
||
select Entries --output_columns \ | ||
'highlight(body, \ | ||
"groonga", "<span class=\\"keyword1\\">", "</span>", \ | ||
{"normalizer": "NormalizerAuto"} \ | ||
)' --command_version 2 |
Oops, something went wrong.