From dc6d4abae736cfdf09dfb7ee38bafe47708d328f Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 4 Oct 2002 15:58:34 +0000 Subject: [PATCH] Added a bit of logging to the searches to get a better idea of what's asked for, Daniel --- doc/index.py | 7 +++++++ doc/search.php | 20 +++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/doc/index.py b/doc/index.py index 17479786..4e32419b 100755 --- a/doc/index.py +++ b/doc/index.py @@ -60,6 +60,12 @@ TABLES={ KEY name (name), KEY symbol (symbol), UNIQUE KEY ID (name, symbol))""", + "Queries" : """CREATE TABLE Queries ( + ID int(11) NOT NULL auto_increment, + Value varchar(50) NOT NULL, + Count int(11) NOT NULL, + UNIQUE KEY id (ID,Value(35)), + INDEX (ID))""", } # @@ -118,6 +124,7 @@ def checkTables(db): # make sure apache can access the tables read-only try: ret = c.execute("GRANT SELECT ON xmlsoft.* TO nobody@localhost") + ret = c.execute("GRANT INSERT,SELECT,UPDATE ON xmlsoft.Queries TO nobody@localhost") except: pass return 0 diff --git a/doc/search.php b/doc/search.php index d406998f..7be00553 100644 --- a/doc/search.php +++ b/doc/search.php @@ -92,7 +92,7 @@ A:link, A:visited, A:active { text-decoration: underline } // We handle only the first argument so far $query = ltrim ($query); if (! $query) { - echo "

Search the documentation on XMLSoft.org

"; + echo "

Search the X documentation on XMLSoft.org

"; } ?>

The search service indexes only the XML API at the moment. To use it @@ -104,6 +104,23 @@ simply provide a set of keywords: