harvesterplugins/applications/src/applicationsplugin.cpp
changeset 20 68cdadcf169e
parent 17 7d8c8d8f5eab
--- a/harvesterplugins/applications/src/applicationsplugin.cpp	Wed Aug 18 09:49:49 2010 +0300
+++ b/harvesterplugins/applications/src/applicationsplugin.cpp	Thu Sep 02 20:27:46 2010 +0300
@@ -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