Added search index table + simple XML-based search interface
The XML thing is supposed to be used for auto-completion, of course. The current search implementation is very, very stupid and simple: Just a prefix match on the man name, and simple detection of section stuff. I suppose it'll suffice for now.
This commit is contained in:
parent
5d39a55158
commit
10e8d4acae
4 changed files with 38 additions and 21 deletions
|
|
@ -53,6 +53,10 @@ CREATE INDEX ON man USING hash (hash);
|
|||
CREATE INDEX ON man (name);
|
||||
|
||||
|
||||
CREATE TABLE man_index AS SELECT DISTINCT name, section FROM man;
|
||||
CREATE INDEX ON man_index USING btree(lower(name) text_pattern_ops);
|
||||
|
||||
|
||||
INSERT INTO systems (id, name, release, short, relorder) VALUES
|
||||
(1, 'Arch Linux', NULL, 'arch', 0),
|
||||
(2, 'Ubuntu', '4.10', 'ubuntu-warty', 0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue