added the start of the Index Manager, which integrates Lucene indexing into
the base Dynamo framework
This commit is contained in:
@@ -56,6 +56,10 @@
|
||||
<database connection="data"/>
|
||||
</object>
|
||||
|
||||
<object name="index" classname="com.silverwrist.dynamo.index.IndexManagerObject" priority="1">
|
||||
<database connection="data" namespaces="nscache"/>
|
||||
</object>
|
||||
|
||||
<object name="srm" classname="com.silverwrist.dynamo.security.SRMObject" priority="1">
|
||||
<database connection="data" namespaces="nscache"/>
|
||||
<user-manager cpoint="srm_proxy"/>
|
||||
|
||||
@@ -313,6 +313,32 @@ CREATE TABLE us_binary_prop (
|
||||
PRIMARY KEY (msgid, part, nsid, prop_name)
|
||||
);
|
||||
|
||||
# Listing of registered indexes.
|
||||
CREATE TABLE ndx_main (
|
||||
ndxid INT NOT NULL PRIMARY KEY AUTO_INCREMENT, # index ID
|
||||
nsid INT NOT NULL, # namespace ID of index
|
||||
name VARCHAR(255) BINARY NOT NULL, # index name
|
||||
analyzer VARCHAR(255) NOT NULL, # name of analyzer class to construct
|
||||
UNIQUE INDEX by_name (nsid, name)
|
||||
);
|
||||
|
||||
# The "files" that make up an index.
|
||||
CREATE TABLE ndx_files (
|
||||
ndxid INT NOT NULL, # index ID
|
||||
name VARCHAR(255) BINARY NOT NULL, # file name
|
||||
length INT NOT NULL DEFAULT 0, # file length
|
||||
mtime BIGINT NOT NULL DEFAULT 0, # modification time
|
||||
data LONGBLOB, # the file data
|
||||
PRIMARY KEY (ndxid, name)
|
||||
);
|
||||
|
||||
# The locks created on an index.
|
||||
CREATE TABLE ndx_locks (
|
||||
ndxid INT NOT NULL, # index ID
|
||||
name VARCHAR(255) BINARY NOT NULL, # lock name
|
||||
PRIMARY KEY (ndxid, name)
|
||||
);
|
||||
|
||||
############################ following this line are Venice-specific tables ############################
|
||||
|
||||
# The table which defines menus.
|
||||
|
||||
Reference in New Issue
Block a user