Module Name: src
Committed By: abhinav
Date: Mon Oct 3 13:36:35 UTC 2016
Modified Files:
src/usr.sbin/makemandb: apropos-utils.c
Log Message:
Mark the section and md5_hash columns as unindexed in the FTS table, as they
are not used for search
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.sbin/makemandb/apropos-utils.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/makemandb/apropos-utils.c
diff -u src/usr.sbin/makemandb/apropos-utils.c:1.28 src/usr.sbin/makemandb/apropos-utils.c:1.29
--- src/usr.sbin/makemandb/apropos-utils.c:1.28 Wed Jul 6 18:03:27 2016
+++ src/usr.sbin/makemandb/apropos-utils.c Mon Oct 3 13:36:35 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: apropos-utils.c,v 1.28 2016/07/06 18:03:27 abhinav Exp $ */
+/* $NetBSD: apropos-utils.c,v 1.29 2016/10/03 13:36:35 abhinav Exp $ */
/*-
* Copyright (c) 2011 Abhinav Upadhyay <[email protected]>
* All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: apropos-utils.c,v 1.28 2016/07/06 18:03:27 abhinav Exp $");
+__RCSID("$NetBSD: apropos-utils.c,v 1.29 2016/10/03 13:36:35 abhinav Exp $");
#include <sys/queue.h>
#include <sys/stat.h>
@@ -175,7 +175,8 @@ create_db(sqlite3 *db)
"CREATE VIRTUAL TABLE mandb USING fts4(section, name, "
"name_desc, desc, lib, return_vals, env, files, "
"exit_status, diagnostics, errors, md5_hash UNIQUE, machine, "
- "compress=zip, uncompress=unzip, tokenize=porter); "
+ "compress=zip, uncompress=unzip, tokenize=porter, "
+ "notindexed=section, notindexed=md5_hash); "
//mandb_meta
"CREATE TABLE IF NOT EXISTS mandb_meta(device, inode, mtime, "
"file UNIQUE, md5_hash UNIQUE, id INTEGER PRIMARY KEY); "