harvesterplugins/applications/src/applicationsplugin.cpp
changeset 18 1edf350003c5
parent 16 e918432ddd92
child 26 367228f82b66
--- a/harvesterplugins/applications/src/applicationsplugin.cpp	Mon Aug 09 12:23:41 2010 +0530
+++ b/harvesterplugins/applications/src/applicationsplugin.cpp	Wed Aug 25 13:02:31 2010 +0530
@@ -159,6 +159,9 @@
     if( aAppInfo.iShortCaption.Compare(KNullDesC) )
         {
         aDocument->AddFieldL(KApplicationFieldCaption, aAppInfo.iShortCaption, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText);
+#ifdef USE_HIGHLIGHTER
+        aDocument->AddHLDisplayFieldL(aAppInfo.iShortCaption);
+#endif
         }
     else
         {
@@ -169,6 +172,9 @@
             TInt lengthOfNameWithoutExtention = aAppInfo.iFullName.Length() -location -1; //-1 to increment one past '\'.
             TPtrC appName = aAppInfo.iFullName.Right( lengthOfNameWithoutExtention );
             aDocument->AddFieldL(KApplicationFieldAbsolutePath, appName.Left( appName.Length() -4 /*remove ".exe"*/), CDocumentField::EStoreYes | CDocumentField::EIndexTokenized );
+#ifdef USE_HIGHLIGHTER
+            aDocument->AddHLDisplayFieldL(appName.Left( appName.Length() -4 /*remove ".exe"*/));
+#endif
             }
         }
     //For applications, no content to go into exceprt field, for more info, check the appclass-hierarchy.txt