harvesterplugins/applications/src/applicationsplugin.cpp
changeset 15 df6898e696c6
parent 9 4a2987baf8f7
child 16 e918432ddd92
--- a/harvesterplugins/applications/src/applicationsplugin.cpp	Mon Jul 12 00:27:06 2010 +0530
+++ b/harvesterplugins/applications/src/applicationsplugin.cpp	Mon Jul 26 12:45:04 2010 +0530
@@ -240,7 +240,14 @@
     //That way, if a client is interested in the UID field, he can choose to query it explicitly.
     document->AddFieldL(KMimeTypeField, KMimeTypeApplication, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized );
     document->AddFieldL(KApplicationFieldUid, docidString, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EAggregateNo );
-
+#ifdef USE_HIGHLIGHTER    
+    TInt excerptLength = docidString.Length();
+    HBufC* excerpt = HBufC::NewL(excerptLength);
+    TPtr excerptPtr = excerpt->Des();
+    CleanupStack::PushL(excerpt);
+    document->AddExcerptL(excerptPtr);
+    CleanupStack::PopAndDestroy(excerpt);
+#endif
     if( iWidgetRegistry.IsWidget( aAppInfo.iUid  ) )
         AddWidgetInfoL( document, aAppInfo.iUid );
     else