-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsphinx.sql
86 lines (67 loc) · 2.32 KB
/
sphinx.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
-- BibleForge
--
-- @date 05-21-12
-- @version 1.0
-- @link http://BibleForge.com
-- @license MIT License (MIT)
-- @author BibleForge <[email protected]>
-- This creates the pseudo SphinxSE tables in the database.
--TODO: This should probably be created dynamically in the Forge because the connection string.
--NOTE: The connection parameters can be changed during the query via the "WHERE query='...;host=DYNAMIC_HOST;port=DYNAMIC_PORT'" section of the query.
--
-- Create verse_text_en
--
-- First, drop it if it exists.
DROP TABLE IF EXISTS `verse_text_en`;
-- Create table structure
CREATE TABLE `verse_text_en` (
`id` int(10) unsigned NOT NULL,
`weight` int(11) NOT NULL,
`query` varchar(3072) NOT NULL,
KEY `query` (`query`)
) ENGINE=SPHINX DEFAULT CHARSET=utf8 CONNECTION='sphinx://127.0.0.1:9312/verse_text_en';
--
-- Create verse_text_en_em
--
-- First, drop it if it exists.
DROP TABLE IF EXISTS `verse_text_en_em`;
-- Create table structure
CREATE TABLE `verse_text_en_em` (
`id` int(10) unsigned NOT NULL,
`weight` int(11) NOT NULL,
`query` varchar(3072) NOT NULL,
KEY `query` (`query`)
) ENGINE=SPHINX DEFAULT CHARSET=utf8 CONNECTION='sphinx://127.0.0.1:9312/verse_text_en_em';
--
-- Create verse_text_zh_s
--
-- First, drop it if it exists.
DROP TABLE IF EXISTS `verse_text_zh_s`;
-- Create table structure
CREATE TABLE `verse_text_zh_s` (
`id` int(10) unsigned NOT NULL,
`weight` int(11) NOT NULL,
`query` varchar(3072) NOT NULL,
KEY `query` (`query`)
) ENGINE=SPHINX DEFAULT CHARSET=utf8 CONNECTION='sphinx://127.0.0.1:9312/verse_text_zh_s';
--
-- Create verse_text_zh_t
--
-- First, drop it if it exists.
DROP TABLE IF EXISTS `verse_text_zh_t`;
-- Create table structure
CREATE TABLE `verse_text_zh_t` (
`id` int(10) unsigned NOT NULL,
`weight` int(11) NOT NULL,
`query` varchar(3072) NOT NULL,
KEY `query` (`query`)
) ENGINE=SPHINX DEFAULT CHARSET=utf8 CONNECTION='sphinx://127.0.0.1:9312/verse_text_zh_t';
-- First, drop it if it exists.
DROP TABLE IF EXISTS `morphological_en`;
CREATE TABLE `morphological_en` (
`id` int(10) unsigned NOT NULL,
`weight` int(11) NOT NULL,
`query` varchar(3072) NOT NULL,
`verseID` int(11) NOT NULL,
KEY `query` (`query`)
) ENGINE=SPHINX DEFAULT CHARSET=utf8 CONNECTION='sphinx://127.0.0.1:9312/morphological_en';