Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: use catalog.json to define schema
Groonga can't detect index source change without restart a process that already opens a Groonga database. In Droonga, worker processes opens their database and server process defines tables and columns in the database by table_create and column_create. So worker processes can't detect index source change by server process. If we use catalog.json to define tables and columns, server process defines them and then worker processes run and open the database. So worker processes can know the latest index source. We need more work about them. There are some tests that face the case. See test results on Travis CI.
- Loading branch information
Showing
2 changed files
with
139 additions
and
1 deletion.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| "datasets": { | ||
| "Droonga": { | ||
| "schema": { | ||
| "Sections": { | ||
| "type": "Hash", | ||
| "keyType": "ShortText", | ||
| "columns": { | ||
| "title": { | ||
| "type": "Scalar", | ||
| "valueType": "ShortText" | ||
| } | ||
| } | ||
| }, | ||
| "Terms": { | ||
| "type": "PatriciaTrie", | ||
| "keyType": "ShortText", | ||
| "normalizer": "NormalizerAuto", | ||
| "tokenizer": "TokenBigram", | ||
| "columns": { | ||
| "title_index": { | ||
| "type": "Index", | ||
| "valueType": "Sections", | ||
| "indexOptions": { | ||
| "sources": [ | ||
| "title" | ||
| ], | ||
| "position": true | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "fact": "Sections" | ||
| } | ||
| } | ||
| } |
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