133 aDocument->AddFieldL(KApplicationFieldAbsolutePath, temp, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); |
133 aDocument->AddFieldL(KApplicationFieldAbsolutePath, temp, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); |
134 CPIXLOGSTRING2("AddApplicationInfo(): PATH = %S ", &temp); |
134 CPIXLOGSTRING2("AddApplicationInfo(): PATH = %S ", &temp); |
135 OstTraceExt1( TRACE_NORMAL, CAPPLICATIONSPLUGIN_ADDWIDGETINFOL, "CApplicationsPlugin::AddWidgetInfoL;PATH=%S", &temp ); |
135 OstTraceExt1( TRACE_NORMAL, CAPPLICATIONSPLUGIN_ADDWIDGETINFOL, "CApplicationsPlugin::AddWidgetInfoL;PATH=%S", &temp ); |
136 |
136 |
137 //GetWidgetPropertyValueL returns CWidgetPropertyValue* which in turn has an operator to convert to TDesC |
137 //GetWidgetPropertyValueL returns CWidgetPropertyValue* which in turn has an operator to convert to TDesC |
138 aDocument->AddFieldL(KApplicationFieldCaption, *(iWidgetRegistry.GetWidgetPropertyValueL( aUid, EBundleDisplayName )), CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); |
138 aDocument->AddFieldL(KApplicationFieldCaption, *(iWidgetRegistry.GetWidgetPropertyValueL( aUid, EBundleDisplayName )), CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); |
139 |
139 |
140 //For applications, no content to go into exceprt field. |
140 //For applications, no content to go into exceprt field. |
141 //For more info, check the appclass-hierarchy.txt |
141 //For more info, check the appclass-hierarchy.txt |
142 //iWidgetRegistry.GetWidgetBundleName( aUid, temp ); |
142 //iWidgetRegistry.GetWidgetBundleName( aUid, temp ); |
143 //aDocument->AddExcerptL( temp ); |
143 //aDocument->AddExcerptL( temp ); |
155 docidString = docidString.Mid( KUidStartIndex, KUidEndIndex ); |
155 docidString = docidString.Mid( KUidStartIndex, KUidEndIndex ); |
156 |
156 |
157 //We index the exe name (without extension), only if the title is not present. |
157 //We index the exe name (without extension), only if the title is not present. |
158 if( aAppInfo.iShortCaption.Compare(KNullDesC) ) |
158 if( aAppInfo.iShortCaption.Compare(KNullDesC) ) |
159 { |
159 { |
160 aDocument->AddFieldL(KApplicationFieldCaption, aAppInfo.iShortCaption, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); |
160 aDocument->AddFieldL(KApplicationFieldCaption, aAppInfo.iShortCaption, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); |
161 } |
161 } |
162 else |
162 else |
163 { |
163 { |
164 //Find the *last* location of '\' and remove the .exe to get just the filename. |
164 //Find the *last* location of '\' and remove the .exe to get just the filename. |
165 TInt location = aAppInfo.iFullName.LocateReverse('\\'); |
165 TInt location = aAppInfo.iFullName.LocateReverse('\\'); |