Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makemandb Mark the section and md5_hash columns as ...



details:   https://anonhg.NetBSD.org/src/rev/0661e76a1f93
branches:  trunk
changeset: 818209:0661e76a1f93
user:      abhinav <abhinav%NetBSD.org@localhost>
date:      Mon Oct 03 13:36:35 2016 +0000

description:
Mark the section and md5_hash columns as unindexed in the FTS table, as they are not used for search

diffstat:

 usr.sbin/makemandb/apropos-utils.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 12410a2491c0 -r 0661e76a1f93 usr.sbin/makemandb/apropos-utils.c
--- a/usr.sbin/makemandb/apropos-utils.c        Mon Oct 03 13:36:33 2016 +0000
+++ b/usr.sbin/makemandb/apropos-utils.c        Mon Oct 03 13:36:35 2016 +0000
@@ -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 <er.abhinav.upadhyay%gmail.com@localhost>
  * 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 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); "



Home | Main Index | Thread Index | Old Index