Grouping Search Results by Parent Folder

Hello,
I am sure someone has come across this before. I would like to display search results grouped by Parent Folder. So all documents in FolderA would be grouped together and all documents in FolderB would be until a FolderB heading..

Hi Craig,
>> It is a performance issue if you don't have the right hardware ;>
not all customers of SAP have the right hardware...
So far there is no easy grouping possibilty. If there would be grouping, grouping for folders would be the first.
As a workaround (and in case you really have the right hardware) you might think of placing several search iViews that execute 'Search from here' in dedicated folder branches.
>>I know that other search engines can do it.
Some do, but eg Google don't...
It's also a matter of availble meta information. At many scenarios there are not to many of them.
Anyhow in near future SAP will offer UI elements for effective filtering on meta information.
But that's not grouping!
Regards Matthias
PS: Though the answer is negative, please think of rewarding. This motivates further answers.

Similar Messages

  • Glassfish LDAP group search results in Exception

    I'm trying to get my group search running but I keep getting the same exception
    java.lang.NullPointerException
         at com.sun.enterprise.security.auth.realm.ldap.LDAPRealm.groupSearch(LDAPRealm.java:705)
         at com.sun.enterprise.security.auth.realm.ldap.LDAPRealm.findAndBind(LDAPRealm.java:497)
         at com.sun.enterprise.security.auth.login.LDAPLoginModule.authenticate(LDAPLoginModule.java:108)
         at com.sun.enterprise.security.auth.login.PasswordLoginModule.authenticateUser(PasswordLoginModule.java:117)
         at com.sun.appserv.security.AppservPasswordLoginModule.login(AppservPasswordLoginModule.java:148)
    There's only on post on the web with the same problem and there is is not fixed.
    This is the domain.xml
    <auth-realm name="EpsLdapRealm" classname="com.sun.enterprise.security.auth.realm.ldap.LDAPRealm">
    <property name="directory" value="ldap://myldap:389"></property>
    <property name="base-dn" value="ou=Users,o=xxx"></property>
    <property name="jaas-context" value="ldapRealm"></property>
    <property name="search-bind-dn" value="cn=saepsman,ou=Users,ou=e-Directory,ou=Services,o=xxx"></property>
    <property name="search-bind-password" value="xxxxx"></property>
    <property name="search-filter" value="(&amp;(objectClass=user)(uid=%s))"></property>
    <property description="null" name="assign-groups" value="USER"></property>
    <property name="group-search-filter" value="(&amp;(objectClass=groupOfNames)(member=%d))"></property>
    <property name="group-base-dn" value="ou=AccessControl,o=xxx"></property>
    </auth-realm>
    Authentication works fine, but group assignments do not work. When I remove the group-search-filter I get no error but then also no groups are assigned.
    The group I am trying to map is
    cn=cug-EPSManager-Administrators,ou=AccessControl,o=xxx
    And I do the following mapping in glassfish-web.xml
    <security-role-mapping>
              <role-name>ADMIN</role-name>
              <group-name>cug-EPSManager-Administrators</group-name>
         </security-role-mapping>
    I also have used
    -Djava.naming.referral=follow
    EDIT:
    I also get the following log message indicating that the search-bin-dn and password are OK. I can also browse the LDAP tree with the credentials in Softerra LDAP Browser.
    Error during LDAP search with filter [(&(objectClass=groupOfNames)(member=cn=cdamen,ou=Users,o=xxx))].|#]
    When I look at the look at the LDAPRealm source code I see it is failing on the following statement
    int sz = grpAttr.size();
    This looks like to me that it means that some group was found but there are no group attributes. But there are when I query with Softerra, strange...
    * Search for group membership using the given connection.
    private List groupSearch(DirContext ctx, String baseDN,
    String filter, String target)
    List groupList = new ArrayList();
    try {
    String[] targets = new String[1];
    targets[0] = target;
    SearchControls ctls = new SearchControls();
    ctls.setReturningAttributes(targets);
    ctls.setSearchScope(SearchControls.SUBTREE_SCOPE);
    NamingEnumeration e = ctx.search(baseDN,
    filter.replaceAll(Matcher.quoteReplacement("\\"), Matcher.quoteReplacement("\\\\")), ctls);
    while(e.hasMore()) {
    SearchResult res = (SearchResult)e.next();
    Attribute grpAttr = res.getAttributes().get(target);
    int sz = grpAttr.size();
    for (int i=0; i<sz; i++) {
    String s = (String)grpAttr.get(i);
    groupList.add(s);
    } catch (Exception e) {
    _logger.log(Level.WARNING, "ldaprealm.searcherror", filter);
    _logger.log(Level.WARNING, "security.exception", e);
    return groupList;
    Hope anyone knows the solution.
    Coen

    Hi Jeong
    Can you explain exactly what you're tyring to achieve.
    Howard
    http://www.avoka.com

  • Groups missing inherited permissions from parent folder on SMB share on save

    If i save a file on a lion share where i have access RW over group permissions, the groups missing inherited permissions on SMB share on save.
    File permissions before save:
    user: read/write
    group: read/write
    other: no access
    File permissions after save:
    user2: read/write (it changed to the actual users who has permission on the Group)
    group: no access !!! Why??
    other: no access
    On Mac OS X 10.6 i was able to force the group permission, from the parent folder.
    Everytime i must manualy propagate from the parent folder to fix this !
    Any ideas?

    I have the same problem. What exactly do you mean by add ACL. I have tried to change the permissions to add the inheritance via ACL, with no joy - so any help you can give would be appreciated. Thank you.

  • Customizing parent folder link options in DiscussionForum Layout set

    Hi All,
    I have created a forum page with discussionForum layout set.Now, it shows the discussion groups inside it with parent folder link at the top.this parent folder link has some options like view,coolaboration,details etc which I need to customize...
    By parent folder I mean like if A has x,y,z discussion groups:
    If you click on x then, parent folder link changes to:
    A-->x...there is a option menu just besides this link which I need to customize.
    Can anyone give a clear idea to this problem??
    With Regards,
    Udit

    Hi Udit,
    Pls follow the below steps,
    1. Go to sys admin> sys configuration> Knowledgemanagement --> content management -- >user interface.> settings> layout set
    2. Search for Discussion layout set and open it.
    3. In Collection renderer field, click on the link discussion group bread crumb
    4. In the subsequent window, click on the collection command group : discussiongroupbreadcrumbcommandgroup.
    5.in the next window, edit the command list field as per your requirement and save.
    Pls reward for helpful answer.
    Rgds,
    Siva

  • Retrieving the Full Path of the Document / Folder in Search results

    Hello,
    We have a custom portlet to perform search in knowledge directory. We are able to retrieve the results from knowledge directory and would like to know on one enhancement feature.
    Would like to know if it is possible to retrieve the directory structure / path of the document / folder. Something like "\Knowledge Directory\Customer Service\...." I have seen this path come up in search results when using Portal Admin. Not sure if it is available when using the idk.dll
    Below is a sample code in C#. Would you know if there is a way I can retrieve the directory strcuture. If so, what method would give me that value? I tried GetURL, but that gives me the URL of the document http://portal/.....as compared to the path.
    ===== 
    using Plumtree.Remote.Portlet; 
    using Plumtree.Remote.PRC; 
    using Plumtree.Remote.PRC.Search;
    //Establishing Session with Portal
    IRemoteSession session = RemoteSessionFactory.GetExplicitLoginContext(new Uri(portletPortalAPIPref), username, password);
    ISearchFactory searchFactory = session.GetSearchFactory();
    searchRequest = searchFactory.CreatePortalSearchRequest();
    searchRequest.SetQuery(txtSearchText.Text);
                //Setting up the Search Parameters – Objects to Search, Order By, Number of Results
      ObjectClass[] objectTypes = { ObjectClass.Document, ObjectClass.DocumentFolder };
      searchRequest.SetObjectTypesToSearch(objectTypes);
       searchRequest.SetResultsOrderBy(PlumtreeField.NAME);
       searchRequest.SetOrderAscending(true);
      searchRequest.SetResultsCount(0, RecordCount);
    //Executing the Search
    searchResponse = searchRequest.Execute();
    resultSet = searchResponse.GetResultSet();
      //iterate through the results
    IEnumerator resultsfolder = resultSet.GetResults();
    while (resultsfolder.MoveNext())
                        IPortalSearchResult result = (IPortalSearchResult)resultsfolder.Current;
    Convert.ToString(result.GetRank() + 1);
    result.GetIconURL().ToString();
    result.GetURL().ToString();
    result.GetName().ToString();
    result.GetExcerpt().ToString();
    result.GetLastModified().ToString();
    result.GetClassID().ToString();
    result.GetObjectID().ToString();

    Have you tried getting the extended data and the Parent Folder ID. (Plumtree.Remote.PRC.IExtendedData)
    Using an additional object search to get the Path for the Parent Folder ID.
    Here is a snippet that may help
    Plumtree.Remote.PRC.IObjectManager objectManager = session.GetObjectManager(Plumtree.Remote.PRC.ObjectClass.<your class to return>);
    Plumtree.Remote.PRC.IObjectQueryRow qResults = objectManager.QuerySingleObject(<id of object to return>);
    if (qResults != null)
        Plumtree.Remote.PRC.IExtendedData ied = qResults.GetExtendedData();
        if (ied != null)
           sResult =  ied.GetStringValue(<property you want to return>);

  • Customize the layout set used when opening a folder in search result list?

    Hi,
    I have created a search result iView that uses a predefined search query to show a list of folders. If I click on a folder <i>(rnd:displayname(contentLink)</i>) its content is displayed in a new window. Here the layout set Consumer Explorer (default profile?) is used.
    I want to use a custom layout set in this window. How can I achieve this?
    Regards,
    Mario

    Hi Mario,
    here the answers:
    > <i>1. Develop an own UI Command where you can give
    > the LayoutSet as a parameter</i>.
    >
    > Do you know where I can find some code sample?
    You can either check the <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/Implementing%20Flexible%20UI%20One-Step-Screenflow.article">Implementing Flexible UI One-Step-Screenflow</a> tutorial by Thilo Brandt or search here on SDN for "UI Command implementation" examples.
    > <i>2. Create a Layout Profile with your own Layout
    > Set and define it as the Default Layout Profile.</i>
    >
    > How can I find out for which operations/standard
    > iViews in KM (copy, move, create link...) the default
    > layout is used to avoid surprises when changing the
    > default profile?
    Normally, as you can see in the above mentioned <a href="http://help.sap.com/saphelp_nw04/helpdata/en/25/59bb2eece725498427334e0e21b80c/content.htm">Priority of Settings</a>, whenever the KM Navigation component (com.sap.km.cm.navigation) is opened without a specific layout set the global default layout set is used. As you can give this parameters by different ways (as URL parameter, in the KM Navigation iView configuration, via OTH file definition, hardcoded or configured in the configuration of an UI Command, etc.) it is nearly impossible to find <b>all</b> situation where your users will get this default profile.
    The UI Commands (with selection) you mentioned like "copy","move","create_link" use the configured LayoutSet (ConsumerOnlyFolderSelector) from the KM Configuration (of the command).
    > <i>3. You can also create a Layout Profile and go to
    > the root folder(s) of the search on "Details" ->
    > "Settings" -> "Presentation" and select your profile
    > in the tab "Settings for all users".</i>
    >
    > I think it is to complex to change all existing KM
    > Navigation iViews to forced mode.
    >
    One idea would be to use the <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/0f/764b87dfb948fcb13fd7695e157892/content.htm">Multiple Property Replacement</a> feature by SAP.
    > Can you give me a hint on the other possibilities you
    > want to publish?
    Of course. One other possibility I have in mind is to work with OTH files. You might also search here on SDN to see how to use them for setting the layout set for specific folder paths.
    Hope this helps,
    Robert

  • How do I get the top links in the search results page to display the folder?

    In the search results page, if you click on the top link from each result, it only brings up the description. Not much use as a link, so was wondering how you display the folder from this link.

    Is this for the general public or just for you?  If it is for the general public then insert this code at the top of the page:
    <TITLE>---</TITLE>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    </HEAD>
    And also at the end of the file after the closing body tag:
    </BODY>
    <HEAD>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    </HEAD>
    </HTML>
    It is unorthodox but it works.

  • Sharepoint 2013 custom search results grouping display template

    Hi,
    I am trying to implement custom grouping for search result items. I would like to group them by a managed property, but without using result blocks (query rules). The idea is to sort the results by the property and then compare the current item (ctx.CurrentItem)
    with the previous item using ctx.CurrentItem.ParentTableReference. If a new property value is detected we insert a new 'group header' (just some simple html). The problem is the ParentTableReference is undefined. Shouldn't there be such a property in current
    item object?
    I'm implementing this in a custom search result item display template...
    Thanks in advance.

    Hi,
    According to your post, my understanding is that you want to customize search result items display template.
    I suggest you get enumerate all properties of JavaScript context object and debug you code to watch the
    ctx.CurrentItem object.
    The following articles for your reference:
    Debugging Display Templates in SharePoint 2013 Search
    http://powersearching.wordpress.com/2013/01/25/debugging-display-temlates-in-sharepoint-2013-search/
    Enumerate all properties of JavaScript context object in display templates in SharePoint 2013
    http://sadomovalex.blogspot.co.uk/2013/06/enumerate-all-properties-of-javascript.html
    How to Define a Custom Group Display Template (GroupTemplateId) for the Search Results WebPart via JavaScript
    http://www.eliostruyf.com/how-to-define-a-custom-group-display-template-for-the-search-results-webpart-via-javascript/
    Creating customized search results in SharePoint 2013
    http://www.abelsolutions.com/totm/creating-customized-search-results-in-sharepoint-2013/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Grouping refinement while grouping the search results in sku based indexing

    Hi,
    We are doing sku based indexing and for a business requirement we had to group the results by product. We were able to achieve this by setting the sorting attribute in the search request.
    sorting=property
    sortProperty=string:$repositoryId:1
    But in the search response though the results are grouped by product the refinements count for the facet created on sku property is greater than the total results count. To group the refinements as well, we have used refineCount=group in the search request but did not find any difference in the response or refinements count. Even though refineCount=group is present in the search request, it is not showing up in the search response.
    Is there a way to group the refinements when the results are grouped in sku based indexing?

    Hi,
    What is your ATG version?
    Regards,
    Jai

  • Folder being searched is included in search results & can be deleted!

    I don't know if this is a new problem, but it was potentially dangerous in my case.
    I have a lot of log files with a specific extension in a folder mixed with a lot of other files. For examples sake, lets say .storage is the extension.
    The folder that all of those files are in is also called Storage.
    Well, I did a Finder search in the folder "Storage" for all the files in that folder with the .storage extension that I wanted to delete, and the top level folder "Storage" was mixed in with the search results. When I selected Command + A to selected them and delete them, the folder "Storage" was also deleted. The is dangerous because that also deleted all the other files in that folder.
    Fortunately I caught that the folder was missing before I emptied the Trash! I think this needs to be fixed?

    Hi Marc,
    Key word in the search result is highlighted, we could refer to the highlight place to find the source.
    Please go to Search Service Application and reset index, then full crawl related content source and see if it could be searched.
    In addition, please post the screenshot of search result at your convenience.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Display folder path in the search result page

    Hi,
    I learnt that to customise the search results page, we need to change the SearchResultLayout set . Is there a command that I can add to the "command list" to display the folder/file path in the search results. Any suggestions in this regard is highly appreciated.
    Regards,
    Sreeram

    Hi Sreeram,
    Pls check this thread..
    https://forums.sdn.sap.com/thread.jspa?threadID=324119&tstart=0
    hope this helps.
    Regards,
    Venkat.

  • How to get webui search result only a group data?

    Dear Friends,
    In BP_HEAD we have enhanced with custom logic. we are registering group of customers under field bu_group in but000. component BP_HEAD_SEARCH we are getting all the data in BUT000. how to show only group data under field bu_group in search result.
    Thanks & Regards
    Deva

    Hello Thomas,
    I need to make data searched only created by the user. how to make BUT000-CRUSER default in background in Search.
    I have used the below  insert, but the search options are been effected which are in display,
    CALL METHOD Lv_QS->INSERT_SELECTION_PARAM
        EXPORTING
          IV_INDEX     = '1'
          IV_ATTR_NAME = 'CREATION_USER'
          IV_SIGN      = 'I'
          IV_OPTION    = 'EQ'
          IV_LOW       = sy-uname
    Thank and  Regards
    Deva

  • Folder name showing in the search result in SharePoint 2013

    Hello,
    In SharePoint 2013, when user search for a document within a folder, Search content along with Folder name and icon getting displayed in the search result. I am trying to hide Folder name from search result. Please suggest some way to achieve this.
    Thank you
    Jyotiraaditya

    Hi,
    As I understand, you want to search without folders in SharePoint 2013.
    You can do the steps to achieve your request:
    In search center in results page, click Edit page.
    In search results web part, click dropdown in the upper right corner -> click Edit Web Part.
    Click Change query -> in Property filter field -> choose contenttype, not contains, folder  -> click Add property filter -> ok.
    Thanks,
    Dean Wang

  • Search is not showing folder info in the results panel

    Hello,
    When I search for documents using UI search, the results panel contains following columns: Name,size,Last modifiied, description and status.
    What I need is directory column also. With out this it is very difficult for users to understand where this document is residing. Is there any way I can add the directory column in the search results? And also we would be able to sort by directory.
    Please help..

    Content Services patch 10.1.2.1.1 (and later cumulative patchsets) introduced this enhancement.
    4265217 - Web UI - "FILE LOCATION" FOR SEARCH RESULTS SHOULD BE DISPLAYED
    cheers
    -Matt.

  • How to prevent Mac OS X's Finder not to show search results from other accounts?

    Hello.
    How do I have Mac OS X 10.8.3 not show searched file results, on Mac, from other accounts with a standard account? I noticed a standard account found files (test.txt in an admin account in a standard account) and can open them! :O
    Thank you in advance.

    Barney-15E wrote:
    If I'm reading your path correctly, it is because you created the folder at the root of your Home directory.
    As I stated above, all users can read your home directory, in order to see into the Sites and Public folders.
    Other users, including Admin users, cannot see into the default folders in the Home folder, except Sites and Public.
    When you create a folder at the root of your home folder, it inherits the permissions of the parent folder, which allows everyone to read that folder.
    If you create a folder at the root of your home, you have to set the permissions on it to prevent others from being able to read it.
    To do so, Get Info on the folder and unlock the padlock on the Sharing and Permissions section.
    Make sure you are the owner of the folder. Select your name from the list, or add it if it is not. Then, click on the gear button and if it is available, select "Make username the owner." If it is not available, you are already the owner. Also make sure you have Read & Write access. Then, select the staff group and delete it. Then, select everyone and set to No access. Then, select Apply to Enclosed from the gear menu.
    To avoid all of this, make your folders inside the default folders (Documents, Pictures, Music, etc.), or one you've already change the permissions on. The Sites and Public folders are visible to all.
    Interesting. I didn't want to use Apple's default folders. I want to make my own. I tried chmod -R 700 on my account and that seems to work. Is that enough? I don't see Staff anymore through Get Info.

Maybe you are looking for

  • No effect of field status group:Communication in Mobile tele. field in OMSG

    Dear Sir/Madam, Suddenly, Mobile telephone field became invisible in production server.  I tried to make the field optional by tick on radio button for Opt. Entry, but i cannot get any effect in XK01 or XK02.  Although, I can see field mobile telepho

  • Populating with holding tax part in WITH_ITEM using RFBIBL00

    Hi all,       While handling with hold tax part during FB01 UPLOAD using RFBIBL00- DIRECT INPUT METHOD,i assigned WITHT, WT_WITHCD AND WT_QSSHB values to BWITH,and the tax part gets calculated and updating bseg table, but the tax part is not getting

  • Copying large production DB to another system

    You are a copying a production database to a QA system. It's very large and you decide to exclude all the table data for the some of the larger tables that are not required for the QA system. All table definitions need to be retained however. How wou

  • Quick question re Infinity upgrade / YouView box

    Been with BT for TV and broadband for several years.  Until recently we were using silver TV box but a few weeks ago we upgraded to Infinity and received what we assumed was the most up-to-date TV box.  Since discovered it's not (it's a H3 box). Is t

  • Double POR in SUS without any change

    Hi everyone, We have an issue with the POR in SUS. The steps to replicate the error are the following: 1. We create a PO. This is sent to SUS. 2. In SUS the vendor creates a POR for that PO. In this POR there is not any change. The vendor confirms th