From 7467cd8fd2d5d45ae4f24ad4abdfa47ff3b941f1 Mon Sep 17 00:00:00 2001 From: dockes Date: Mon, 20 Nov 2006 15:28:57 +0000 Subject: [PATCH] clear abstract if its only ... --- src/rcldb/rcldb.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index ed4d905a..057eb71e 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.96 2006-11-17 10:06:33 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.97 2006-11-20 15:28:57 dockes Exp $ (C) 2004 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -459,6 +459,12 @@ string Native::makeAbstract(Xapian::docid docid, const list& terms) LOGDEB2(("Abtract:output %u -> [%s]\n", it->first,it->second.c_str())); abstract += it->second + " "; } + + // This happens for docs with no terms (only filename) indexed. I'll fix + // one day (yeah) + if (!abstract.compare("... ")) + abstract.clear(); + LOGDEB(("makeAbtract: done in %d mS\n", chron.millis())); return abstract; }