cancel
Showing results for 
Search instead for 
Did you mean: 

KM search iview to search documents without TREX

former_member200339
Participant
0 Kudos

How can i configure a KM search iview to search documents, content inside documents, and folders without using a TREX engine, in EP 6.0

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

according to my knowledge .. not possible .. since KM search ivews searches using index and other KM properties...

or else you can write some webdynpro application which will search document based on KM properties...

search in SDN u can get many code and documents for this.. !!!

Regards,

Jigar Oza

Answers (3)

Answers (3)

0 Kudos

Dear Rana,

KM search iview is designed currently to use with TREX.

If you want configure without TREX means you need to write your own application to achive it.

A sample may be : http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3500

Regards,

Shiva

Former Member
0 Kudos

Hi,

Have a look at this weblog.

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3500]

Hope it helps.

Regards,

Prathamesh

former_member206159
Active Contributor
0 Kudos

I don't think it is possible to search KM documents without TREX engine.

Other option is you can write your own search algorithm

Raghu

former_member200339
Participant
0 Kudos

thanks, but i still guess how the search function in content administration, and system administration, etc., searches the objects

in PCD.

any view on this?

Former Member
0 Kudos

Hi,

it is a custom search on IContentCatalogNode object

from SearchRootNode class used in com.sap.portal.appdesigner.contentcatalog Search component(com.sapportals.appdesigner.contentcatalog.ui.SearchComponent class):


                        IContentCatalogNode firstLevelChildren[];
/*  84*/                if(rootNodeId == null || rootNodeId.trim().equals(""))
                        {
/*  85*/                    RootNode root = (RootNode)ccServ.getRootNode("com.sapportals.appdesigner.contentcatalog.pcm.RootNode", super.request, super.nodeContext, super.nodesDefinitionName);
/*  89*/                    firstLevelChildren = root.getChildren();
                        } else
                        {
/*  92*/                    firstLevelChildren = new IContentCatalogNode[1];
/*  93*/                    firstLevelChildren[0] = ccServ.getNode(rootNodeId, super.request, rootNodeContext);
                        }
/* 101*/                for(int i = 0; i < firstLevelChildren.length; i++)
                        {
/* 104*/                    searchFilter = _buildFilterForNode(firstLevelChildren<i>, objectTypes, searchAttNames);
/* 107*/                    PcdSearchControls sc = new PcdSearchControls();
/* 109*/                    sc.setSearchScope(3);
/* 110*/                    sc.setCountLimit(0L);
/* 111*/                    sc.setTimeLimit(0);
/* 112*/                    sc.setReturningAttributes(null);
/* 113*/                    sc.setReturningObjFlag(true);
/* 114*/                    sc.setDerefLinkFlag(false);
/* 115*/                    sc.setLocale(super.request.getLocale());
/* 117*/                    Map searchEnvironment = new HashMap();
/* 118*/                    searchEnvironment.put("com.sap.portal.appdesigner.searchControls", sc);
/* 119*/                    searchEnvironment.put("com.sap.portal.jndi.requested_aspect", "com.sap.portal.pcm.Administration");
/* 121*/                    searchEnvironment.put("com.sap.portal.directory.search.locale", super.request.getLocale());
/* 123*/                    searchEnvironment.put("com.sap.portal.directory.search.casesensitive", String.valueOf(true));
/* 126*/                    IContentCatalogNode branchRes[] = firstLevelChildren<i>.search(searchFilter, searchEnvironment);
/* 129*/                    for(int j = 0; j < branchRes.length; j++)
/* 131*/                        childsList.add(branchRes[j]);

                        }

Romano