Index: src/search.c ================================================================== --- src/search.c +++ src/search.c @@ -633,15 +633,16 @@ db_finalize(&q); } #if INTERFACE /* What to search for */ -#define SRCH_CKIN 0x0001 /* Search over check-in comments */ -#define SRCH_DOC 0x0002 /* Search over embedded documents */ -#define SRCH_TKT 0x0004 /* Search over tickets */ -#define SRCH_WIKI 0x0008 /* Search over wiki */ -#define SRCH_ALL 0x000f /* Search over everything */ +#define SRCH_CKIN 0x0001 /* Search over check-in comments */ +#define SRCH_DOC 0x0002 /* Search over embedded documents */ +#define SRCH_TKT 0x0004 /* Search over tickets */ +#define SRCH_WIKI 0x0008 /* Search over wiki */ +#define SRCH_TECHNOTE 0x0010 /* Search over tech notes */ +#define SRCH_ALL 0x001f /* Search over everything */ #endif /* ** Remove bits from srchFlags which are disallowed by either the ** current server configuration or by user permissions. @@ -648,17 +649,18 @@ */ unsigned int search_restrict(unsigned int srchFlags){ static unsigned int knownGood = 0; static unsigned int knownBad = 0; static const struct { unsigned m; const char *zKey; } aSetng[] = { - { SRCH_CKIN, "search-ci" }, - { SRCH_DOC, "search-doc" }, - { SRCH_TKT, "search-tkt" }, - { SRCH_WIKI, "search-wiki" }, + { SRCH_CKIN, "search-ci" }, + { SRCH_DOC, "search-doc" }, + { SRCH_TKT, "search-tkt" }, + { SRCH_WIKI, "search-wiki" }, + { SRCH_TECHNOTE, "search-technote" }, }; int i; - if( g.perm.Read==0 ) srchFlags &= ~(SRCH_CKIN|SRCH_DOC); + if( g.perm.Read==0 ) srchFlags &= ~(SRCH_CKIN|SRCH_DOC|SRCH_TECHNOTE); if( g.perm.RdTkt==0 ) srchFlags &= ~(SRCH_TKT); if( g.perm.RdWiki==0 ) srchFlags &= ~(SRCH_WIKI); for(i=0; i } @ if( useYparam && (srchFlags & (srchFlags-1))!=0 && useYparam ){ static const struct { char *z; char *zNm; unsigned m; } aY[] = { - { "all", "All", SRCH_ALL }, - { "c", "Check-ins", SRCH_CKIN }, - { "d", "Docs", SRCH_DOC }, - { "t", "Tickets", SRCH_TKT }, - { "w", "Wiki", SRCH_WIKI }, + { "all", "All", SRCH_ALL }, + { "c", "Check-ins", SRCH_CKIN }, + { "d", "Docs", SRCH_DOC }, + { "t", "Tickets", SRCH_TKT }, + { "w", "Wiki", SRCH_WIKI }, + { "e", "Tech Notes", SRCH_TECHNOTE }, }; const char *zY = PD("y","all"); unsigned newFlags = srchFlags; int i; @

@
if( P("fts0") ){ search_drop_index(); Index: www/changes.wiki ================================================================== --- www/changes.wiki +++ www/changes.wiki @@ -1,10 +1,11 @@ Change Log

Changes for Version 2.4 (TBD)

+ * Add tech note search capability. * Add the -r|--revision option to the annotate command. * Support for URL Aliases added. URL Aliases allow an administrator to define their own URLs on the web interface that are rewritten to built-in URLs with specific parameters. * Provide separate on-line help screens for each setting.