Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

* Search

Dear all,

My KM search application is not working for a seach with *. But with keywords it is working fine. Please tell me what I am missing in this for a * search.

			IWDClientUser wdUser = WDClientUser.getCurrentUser();
			 com.sap.security.api.IUser user = UMFactory.getUserFactory().getUserByLogonID("cmadmin_service");//wdUser.getSAPUser();
			com.sapportals.portal.security.usermanagement.IUser iuser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
			 IResourceContext irCtx = new ResourceContext(iuser);

		IIndexService indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
//		   Build Query Object
		SearchQueryListBuilder sqb = new SearchQueryListBuilder();
		sqb.setSearchTerm(query);
		IQueryEntryList qel = sqb.buildSearchQueryList();

		IFederatedSearch federatedSearch = (IFederatedSearch) indexService.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);
	
		List indexList = new ArrayList();
		indexList.add(indexService.getIndex("KM"));


		ISearchSession session = null;
		if(session == null)
		session = federatedSearch.searchWithSession(qel,indexList,irCtx);

Thanks,

Das.

Not what you were looking for? View more on this topic or Ask a question