[yelp: 7/17] yelp-mallard-document.c: Add desc to the full text index
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp: 7/17] yelp-mallard-document.c: Add desc to the full text index
- Date: Sun, 13 Feb 2011 22:29:29 +0000 (UTC)
commit 377b7f9b2b647b184059c09240970fa103211b63
Author: Shaun McCance <shaunm gnome org>
Date: Fri Feb 11 19:37:54 2011 -0500
yelp-mallard-document.c: Add desc to the full text index
libyelp/yelp-mallard-document.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libyelp/yelp-mallard-document.c b/libyelp/yelp-mallard-document.c
index 41eb134..7d67811 100644
--- a/libyelp/yelp-mallard-document.c
+++ b/libyelp/yelp-mallard-document.c
@@ -977,8 +977,6 @@ mallard_index_threaded (YelpMallardDocument *mallard)
/* We never use the value. Just need something non-NULL. */
g_hash_table_insert (ids, g_strdup (id), id);
- index->str = g_string_new ("");
-
xpath = xmlXPathNewContext (index->doc);
xmlXPathRegisterNs (xpath, BAD_CAST "mal", BAD_CAST MALLARD_NS);
obj = xmlXPathEvalExpression (BAD_CAST
@@ -993,6 +991,8 @@ mallard_index_threaded (YelpMallardDocument *mallard)
desc = g_strdup (obj->stringval);
xmlXPathFreeObject (obj);
+ index->str = g_string_new (desc);
+ g_string_append_c (index->str, ' ');
mallard_index_node (index);
tmp = g_strconcat ("xref:", id, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]