From 27430403e2bcbffef26382b94992ea7947de9145 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 25 Nov 2011 19:44:37 +0100 Subject: [PATCH] comment --- src/common/rclconfig.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/common/rclconfig.cpp b/src/common/rclconfig.cpp index 8caf72a4..35b043f7 100644 --- a/src/common/rclconfig.cpp +++ b/src/common/rclconfig.cpp @@ -388,10 +388,15 @@ bool RclConfig::addLocalFields(map *tgt) return true; } - -// Get all known document mime values (for indexing). We get them from -// the mimeconf 'index' submap: values not in there (ie from mimemap -// or idfile) can't possibly belong to documents in the database. +// Get all known document mime values. We get them from the mimeconf +// 'index' submap. +// It's quite possible that there are other mime types in the index +// (defined in mimemap and not mimeconf, or output by "file -i"). We +// just ignore them, because there may be myriads, and their contents +// are not indexed. +// +// This unfortunately means that searches by file names and mime type +// filtering don't work well together. list RclConfig::getAllMimeTypes() { list lst;