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

Similar Messages

  • SharePoint 2013 custom search Result Type for "Documents" not showing up as option

    I'm trying to create a custom search Result Type called "Documents" that will filter to MS Office filetypes and PDF's.
    However, when I perform a search, although many of these types of files show up in the results, I don't have "Documents" as a Result Type option.
    Here are the steps I'm following:
    From my Enterprise Search Center subsite: Site Settings > Manage Result Types.
    New Result Type.
    Name: Documents
    Source: Documents (System) - this out-of-the-box Result Source appears to cover the filetypes I need.
    Types of content: I've tried leaving it blank (to match all content) and specifically picking the types I want.
    What should these results look like? Office Document Item.
    Check Optimize for frequent use.
    Save.
    I then go back to my search center and search for a common keyword. Many in-scope file show up in the search results. However, under Result Type, I don't see "Documents," even if I click "SHOW MORE."
    Please advise.
    Thanks.
    Brad

    @Mikael As you say, to display the exact results when we click a result source, we should implement logic code to check whether item should be displayed. I have followed steps nearly the same as the topic owner but I saw nothing different between Everything
    and my custom Result Type.
    Here are the steps I'm following:
    Create a custom result type, named Job, and specify a custom display template for it.
    Set its condition to filter list items that have JobName site column ( JobName is site column's managed property) equal of any "IT" or "Doctor".
    I search for "Perter", it returns 5  items with Everything. I expect that it should return 3 items since only those items contain JobName site column.
    Search is fun but rather headache sometimes, give me advise please :)
    Thanks,
    Hoan.

  • Sharepoint 2013 bing search results

    I have integrated bing search to my sharepoint 2013. Its returning results but i am facing two issues.
    1) The bing search is always returning only 8 results
    2) I want to get results for only particular website and i have used following query. But its always returning 8 results and first 3 results are website related and rest 5 results are not related to the site. If i use same query in bing site search
    text box its returning results properly. Any idea why the sharepoint bing search is returning results differently?
    query.QueryText =
    "tender|road Site:http://www.kenha.co.ke/";
    Thanks

    Hi - Thank you for your reply. We dont have proxy server and i tried the steps mentioned in your blog now i am getting 10 results. Is there any setting i need to enable to get all the results or sharepoint restricts the results automatically? I
    could have attached screen shot but its not allowing.
    And my second question is how to restrict bing results to one website. The following query param restrics the search to Kenha when i search in bing directly. But when i search from sharepoint its returning mixed results.
    "tender|road Site:http://www.kenha.co.ke/";
    Thank you for help

  • Image Preview in Sharepoint 2013 Online Search Results

    Hi i am using Sharepoint 2013  online Office 365. In my search page i can view the preview from picture library. But when i am searching document library i can only see the preview of pdf, excel, word etc... not image. Why image file not previewing from
    document library.How to solve this?
    Thanks in advance.

    Hi,
    Please refer links below:
    http://stevemannspath.blogspot.in/2013/02/sharepoint-2013-image-preview-in-search_22.html
    http://blogs.realdolmen.com/experts/2014/03/17/images-in-sharepoint-server-2013-search/
    Hope it helps!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • Creating customized search results in SharePoint 2013

    I am trying to customize search result through display template. my template has two block for Rendering. how to customize search result such as following image:

    Hi Dastani,
    There are two ways to display your results.
    In Search result web part by creating the display type.
    Content Search web part
    As per your above image, I guess you are talking about the content search web part. So for that you need to modify the both control template as well as item display
    template. I don't think you will get the desire result as per your block , During the render process the item template call for each item (indexed item in the
    search corpus).
    Basant Pandey
    http://sharepointfordeveloper.blogspot.com/

  • Display an XML file Content as a treeView in a SharePoint 2013 custom form edited with SharePoint Designer 2013

    Hello everyone,
    Within a list form, user has to select a value amongst a huge number of availables options.
    Instead of using something like a dropdown list, which would be very boring to parse, I would like to display possibles values in a treeview.
    To do that, I tried to use an <Sharepoint:SPTreeView bind to a SharePoint:SPXmlDataSource who read data from an XML File.
    <SharePoint:SPXmlDataSource runat="server" DataFile="../../SiteAssets/App_Data/myfile.xml" AutoSave="True" XPath="" ID="myDataXml"></SharePoint:SPXmlDataSource>
    <SharePoint:SPTreeView runat="server" ID="MyTreeView" DataSourceID="myDataXml" />
    But when I try to display the form in my web browser, an error occurs.
    Therefore, my question is : Is it possible to display the content of an Xml file as a treeView in a SharePoint 2013 custom form edited with SharePoint Designer 2013 ?
    If the answer is yes, how ? Which are the required properties for "SharePoint:SPXmlDataSource" tag and "SharePoint:SPTreeView"  tag ?
    What are the requirements to use thoses tags ?
    Regards,
    Florian.
    Ps : I dont have access to the server side of the SharePoint site I am working on.

    Assuming that https://fullsitename is a new URL address did you make sure to update your browser to include it in the Trusted Sites zone?  The message you are quoting is exactly the one you get if you don't have it in Trusted Sites.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How to set a customized search results template for all users

    Hi.
    I know the customized search results views are stored in a file called pne_portal.hda that resides on every user's subfolder in data/users/profiles/...
    Is there a way to set a customized search results template for all users? If it's impossible, is there a way to modify the Headline view? I'm not able to find the resource or template where this view is.
    Thanks in advance.

    I wasn't able to understand what was meant by this post. Therefore, I modified the standard template HeadLine View.
    Columns for this template are defined in the include slim_search_result_table_header_setup (in std_page.htm).
    Here is the modification of the code:
    <$if customTemplateId and not (baseTemplateId like customTemplateId)$>
              <$columnsString = utGetValue("customlisttemplates/" & strLower(customTemplateId), "columns")$>          
              <!-- Modify START by Oracle-->
         <$else$>
    <!-- here add default fields -->
              <$columnsString="dDocName,dDocTitle,dInDate,dDocAuthor"$>
    <!-- here add your custom fields -->
              <$columnsString=columnsString&",xComment"$>
              <!-- Modify END by Oracle-->
         <$endif$>

  • Group display templates

    Hi all
    I am implementing a search-driven carousel in SharePoint Online 2013 Preview like this one: http://www.blendmaster.net/blog/2012/11/search-driven-twitter-bootstrap-carousel-in-sharepoint-2013/.
    Unlike that one, I am implementing it using the Search Results web part, not the Content Search web part, because the latter one isn't available in SharePoint Online 2013 Preview.
    It is working, however, as well as customising the control and item display templates, I am wanting to customise the group display template; however, I can't find how to "register" the group display template.
    Does anyone know how to associate a group display template with a control display template or, alternatively, how to associate the group display template with the Search Results web part?
    Regards,
    Chris

    Are group templates even available in the CSWP Display templates? It seems I saw on this blog a reference of OOTB templates and only saw a group template for the Search Results Web Part. I have read other posts where you could actually inject a group template
    into the CSWP. Even with that I do not see any examples of how to build the query rule and result block so that you can group results using the CSWP.
    Am I barking up the wrong tree with trying to roll-up content using the CSWP? It seems that everyone wants to group their results like they did using the CQWP but this seems to be very difficult or not well documented. I, for one, have been struggling with
    this for weeks without any success. This should not be so difficult.
    If we don't use the CSWP for content roll-up then what are my other options for cross site-collection roll-ups?

  • Configure search results to display only this site

    HI
    when i search anything in my publishing site the search results display from all sites in sharepoint farm.
    how i configure search results to display only this site:
    i found there is no option in sitesettings>searcscopes 
    and i created a custom search results page.
    adil

    Hi adil,
    For your issue, you can go to Site Settings -> Site Collection Administration -> Search Settings -> set  "Site Collection Search Dropdown Mode" to "Show scopes dropdown":
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Adding Custom Breadcrumb for SharePoint 2013 Custom Master-Page With A Custom Separator.

    Hi All,
    I have successfully converted an HTML file to a SharePoint 2013 Custom Master-Page with relevant style sheets. But when I used within the SharePoint site I could not find the breadcrumb. So I want to know how to do that? For that breadcrumb I need a custom
    separator like an arrow like in the below.
    As you can see the separator is a custom built one. To have this custom separator in my HTML I have used the following code snippet.
    <div class="breadcrumb-desktop">
    <span class="breadcrumb-links"><a href="#">SharePoint Site Home</a></span>
    <span class="breadcrumb-links"><a href="#">Sub Link 01</a></span> Active Page
    </div>
    The styles are as like in the below.
    .breadcrumb-desktop {
    width: 100%;
    font-family: Arial;
    padding: 23px 0 40px;
    float: left;
    font-size: 0.75em;
    line-height: 1.25;
    .breadcrumb-desktop > span.breadcrumb-links:after {
    content: " \203A ";
    white-space: pre;
    I have tried the following code snippet within the SharePoint site as
    <!--MS:<asp:sitemappath runat="server" sitemapproviders="SPSiteMapProvider,SPXmlContentMapProvider" rendercurrentnodeaslink="false" hideinteriorrootnodes="true">-->
    <!--ME:</asp:sitemappath>-->
    But it did not display as I wanted.
    So how am I supposed to insert these to my Custom Master-Page's breadcrumb and style them? Please could someone help me to solve this?
    Thanks and regards,
    Chiranthaka

    Hi Chiranthaka,
    Please use the following code snippet in your html master page.
    <div class="CustomBreadcrumbs">
    You are here:
    <!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderPageTitleInTitleArea" runat="server">-->
    <!--SPM:<asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server">-->
    <!--MS:<asp:sitemappath runat="server" sitemapproviders="SPSiteMapProvider,SPXmlContentMapProvider" rendercurrentnodeaslink="false" hideinteriorrootnodes="true">-->
    <!--ME:</asp:sitemappath>-->
    <!--SPM:</asp:ContentPlaceHolder>-->
    <!--SPM:</SharePoint:AjaxDelta>-->
    </div>
    Here is a thread for your reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/daabd903-df98-41da-80d8-6a942d06980e/add-breadcrumb-to-custom-master-page-html-file?forum=sharepointcustomization
    We can also customize a breadcrumb control, then add it in master page.
    http://msreddysharepoint.blogspot.com/2013/01/custom-breadcrumb-navigation-in.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Sharepoint 2013 Server Search Not Working, URGENT!!

    Hi thr,
    im a current sharepoint 2013 server user and im facing a severe problem with sharepoint now, i cannot search using the search bar 
    And the Search Service Application keeps giving me this error, 'The search service is not able to connect to the machine that hosts the administration component. Verify that the administration component in search application ‘Search Service Application’
    is in a good state and try again. '
    I have tried every possible way including creating new search service application, restarting the services , everything i had already tried but its still not working and keep giving me errors
    Anyone can help me? its very urgent here, thanks

    Can you check out the patch status of the servers? If you've got auto-update on the servers and something for SharePoint has been downloaded and installed, it might need to be configured still. Either the PS Config (as suggested below) or the Set-up wizard
    will take care of this
    Additionally, the TechNet Wiki has something that might help you out
    http://social.technet.microsoft.com/wiki/contents/articles/22838.sharepoint-2013-the-search-service-is-not-able-to-connect-to-the-machine-that-hosts-the-administration-component.aspx
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Crawl log error in sharepoint 2013 for search services

    Dear Support,
    please find below mention crawl log error in sharepoint 2013 for search services.
    8,597 The server is unavailable and could not be accessed. The server is probably disconnected from the network. 
    423 This item could not be crawled because the repository did not respond within the specified timeout period. Try to crawl the repository at a later time, or increase the timeout value on the Proxy and Timeout page in search administration. You might also
    want to crawl this repository during off-peak usage times. 
    59 Processing this item failed because of a timeout when parsing its contents. 
    11 The filtering process has been terminated 
    4 SharePoint returned an empty response. 
    3 The crawler could not communicate with the server. Check that the server is available and that the firewall access is configured correctly. 
    2 The crawler could not communicate with the server. Check that the server is available and that the firewall access is configured correctly. If the repository was temporarily unavailable, an incremental crawl will fix this error. 
    would request your support for resolving this type of issue

    1. Are you able to browse the sites on SP server. server is unavailable means that application pool
    of that site is down. Check application pool on all server. if you start any application pool. make sure it does not stop few minutes later. you need to update password if it does stop
    2. Create a disable loopbackcheck of registry on all servers
    http://blogs.technet.com/b/sharepoint_foxhole/archive/2010/06/21/disableloopbackcheck-lets-do-it-the-right-way.aspx
    http://support.microsoft.com/kb/926642/en-us
    3. Create a new search service application and check if you face same issue.
    4. I assume you have change some password or other setting when you started facing this issue. what changes were made in environment
    If this helped you resolve your issue, please mark it Answered

  • How to: Create a custom search result screen?

    Hello,
    Is it possible to create a custom search result screen?
    I need it because the users must be able to directly e-mail
    the items or a selection of the items returned by the search.
    For this modification of the standard result page isn't sufficient.
    Thanks,
    Steven.

    Steven, please see:
    http://technet.oracle.com/products/iportal/files/pdk/plsql/doc/sdk23pkg.htm

  • Cannot display custom search result to Public user

    I use the custom search portlet with auto query. When I log in to the portal, I can see the result. When I do not log into the portal, I do not see the result. The page is displayed fine, only this portlet is not displayed. Is there some setting I need to do?
    Can someone help?
    Thanks in advance,
    John

    John,
    Yes I tried searching just the page group where the items are located but they were not found.
    The page is public, with no security at item level.
    I have now detached the template from the content page, re-applied Make Public to the page and the search works.
    The access on the Template was Display Page to Public and Enable Item Level Security, with ORCLADMIN user Manage access.
    I would like to use templates, as we need a consistent look and navigation, so let me know if you have any idea's where I have gone wrong, or if this is a bug.
    Thanks,
    Brenda

  • How can set a customized search results template and all users see it

    Hi all ,,,,
    I Added new costume template search result
    And when I added this template it’s added only for the user how created this template ,And I need all users see and use this template can anyone tell how I can add template for search result and all users see it or if I can do synchronies for this template.

    I wasn't able to understand what was meant by this post. Therefore, I modified the standard template HeadLine View.
    Columns for this template are defined in the include slim_search_result_table_header_setup (in std_page.htm).
    Here is the modification of the code:
    <$if customTemplateId and not (baseTemplateId like customTemplateId)$>
              <$columnsString = utGetValue("customlisttemplates/" & strLower(customTemplateId), "columns")$>          
              <!-- Modify START by Oracle-->
         <$else$>
    <!-- here add default fields -->
              <$columnsString="dDocName,dDocTitle,dInDate,dDocAuthor"$>
    <!-- here add your custom fields -->
              <$columnsString=columnsString&",xComment"$>
              <!-- Modify END by Oracle-->
         <$endif$>

Maybe you are looking for

  • Software update issues - made more problems for me

    My Q10 just downloaded a new Software release 10.1.0.4189 I was excited because I had hoped it would solve the issue of the ring tones NOT working for TEXT messages. NOT ONLY did it not correct that... 1. BUT I lost all of my videos and pictures in t

  • Syncing Treo 680 (DateBk6) with Mac OS X 10.4.9?

    I have just switched from a PC to a Mac yesterday. My most important question is how do I sync my Treo 680 (with DateBk6) to my new Mac. I have a lot of apps on my Treo (including Avantgo), so iSync is ruled out. After reading other forums and doing

  • Photos duplicates in iPhoto

    Hi everyone I would like to know if the problem of duplicating photos is fixed with the most recent version of iPhoto. Before, I remember that rotating a photo created a new photo in the folder "modified", and the original one in "originals". That's

  • How to Hide the column in the model layer

    Hi, My Jdeveloper version is 11.1.1.3.0. We can make an attribute visible / invisble by setting Display Hints value in the Control hints tab. I want to display the column conditionally. Is it possible to do it dynamically in Model Level itself by Dis

  • Oracle databse 10g express edition 64 bits for oracle linux 64bits

    Can I find somewere where i do downlod of oracle database 10g XE 64bits for oracle linux 64bits Please help me. I realy need this database ! thank's Dênio Edited by: 968495 on 30/10/2012 10:17