Content search webpart sorting not working

Using the Content Search webpart I have created a query that rollsup all the subsites of a particular path, which is working well. However, I have tried sorting using he sort by term SPSiteURL, unfortunatly that is not working. Does anyone have any idea
what I am doing wrong.
davidh

Hi Cameron,
Thanks for the reply. I find that hard to accept becuase I can get the same webpart to sort like I want it to at our SharePoint Online sites, granted the sorting feature is in a diferent location within the edit webpart dialog but still basically the same
feature. Also, I would think that the SPSiteURL sort term does and should include the entire URL, which is unique to each site, which means that it should sort on the entire URL.
I think that it is reasonable to expect to be able to achieve this in some manner, maybe not the way I am trying to do it, but I have to think I am not the first person to want to present the results of subsites sorted alpha-numerically.
Thanks,
davidh

Similar Messages

  • Content Search Web Part not work for Office Web Apps

    Hi ,
    In Content Search Web Part word documents are not able to open in browser,but in document library  its working.
    Office Web Apps not work in Content search web part
    Please help me
    Regards
    Sachin

    Below is the display template to open the document in OWA.
    <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> 
    <head>
    <title>AdSpace Picture on top, 3 lines on bottom</title>
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
    <mso:ManagedPropertyMapping msdt:dt="string">&#39;Picture URL&#39;{Picture URL}:&#39;PublishingImage;PictureURL;PictureThumbnailURL&#39;,&#39;Link URL&#39;{Link URL}:&#39;Path&#39;,&#39;Line 1&#39;{Line
    1}:&#39;Title&#39;,&#39;Line 2&#39;{Line 2}:&#39;Description&#39;,&#39;Line 3&#39;{Line 3}:&#39;&#39;,&#39;FileExtension&#39;,&#39;SecondaryFileExtension&#39;,&#39;ContentTypeId&#39;,&#39;ServerRedirectedURL&#39;</mso:ManagedPropertyMapping>
    <mso:MasterPageDescription msdt:dt="string">This Item Display Template will show a 304x100 picture of the item on top. The title and the default item description will display to the bottom of the picture with an additional line that is available
    for a custom managed property.</mso:MasterPageDescription>
    <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
    <mso:TargetControlType msdt:dt="string">;#Content Web Parts;#</mso:TargetControlType>
    <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
    <mso:_dlc_DocId msdt:dt="string">ZRMVMDDDEAE7-1-215</mso:_dlc_DocId>
    <mso:_dlc_DocIdItemGuid msdt:dt="string">583b0835-32ff-4d1c-983f-b6ff4a0ef956</mso:_dlc_DocIdItemGuid>
    <mso:_dlc_DocIdUrl msdt:dt="string">http://sp2013-dev-6:7000/sites/adspace/_layouts/15/DocIdRedir.aspx?ID=ZRMVMDDDEAE7-1-215, ZRMVMDDDEAE7-1-215</mso:_dlc_DocIdUrl>
    <mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
    <mso:HtmlDesignStatusAndPreview msdt:dt="string">http://sp2013-dev-6:7000/sites/adspace/_catalogs/masterpage/Display Templates/Content Web Parts/Item_PictureOnTop.html, Conversion successful.</mso:HtmlDesignStatusAndPreview>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
    </head>
    <body>
        <!--
                Warning: Do not try to add HTML to this section. Only the contents of the first <div>
                inside the <body> tag will be used while executing Display Template code. Any HTML that
                you add to this section will NOT become part of your Display Template.
        -->
        <script>
            $includeLanguageScript(this.url, "~sitecollection/_catalogs/masterpage/Display Templates/Language Files/{Locale}/CustomStrings.js");
        </script>
        <!--
            Use the div below to author your Display Template. Here are some things to keep in mind:
            * Surround any JavaScript logic as shown below using a "pound underscore" (#_ ... _#) token
            inside a comment.
            * Use the values assigned to your variables using an "underscore pound equals"
            (_#= ... =#_) token.
        -->
        <div id="Item_PictureOnTop">
    <!--#_
    var useWACUrl = !$isEmptyString(ctx.CurrentItem.ServerRedirectedURL);
            if(ctx.ScriptApplicationManager && ctx.ScriptApplicationManager.states){
                useWACUrl = (useWACUrl && !ctx.ScriptApplicationManager.states.openDocumentsInClient);
            var appAttribs = "";
            if(!useWACUrl)
                if (!$isEmptyString(ctx.CurrentItem.csr_OpenApp)) { appAttribs += "openApp=\"" + $htmlEncode(ctx.CurrentItem.csr_OpenApp) + "\"" }; 
                if (!$isEmptyString(ctx.CurrentItem.csr_OpenControl)) { appAttribs += " openControl=\"" + $htmlEncode(ctx.CurrentItem.csr_OpenControl) + "\"" };
            var url = ctx.CurrentItem.csr_Path;
         if($isEmptyString(url)){
                if(useWACUrl)
                    url = ctx.CurrentItem.ServerRedirectedURL;
                } else {
                    url = ctx.CurrentItem.Path;
    var encodedId = $htmlEncode(ctx.ClientControl.get_nextUniqueId() + "_pictureOnTop_");
    var linkURL = $getItemValue(ctx, "Link URL");
    linkURL.overrideValueRenderer($urlHtmlEncode);
     var iconURL = Srch.ContentBySearch.getIconSourceFromItem(ctx.CurrentItem);
    var line1 = $getItemValue(ctx, "Line 1");
    var setLineHeightRenderer = function(valueInfoObj)
        if(!$isNull(valueInfoObj) && !valueInfoObj.isEmpty)
            if(!$isNull(valueInfoObj.defaultValueRenderer))
                return valueInfoObj.defaultValueRenderer(valueInfoObj);
            else
                return valueInfoObj.toString();
        else
            return "&nbsp;";
    var line2 = $getItemValue(ctx, "Line 2");
    line2.overrideValueRenderer(setLineHeightRenderer);
    var line3 = $getItemValue(ctx, "Line 3");
    line3.overrideValueRenderer(setLineHeightRenderer);
    var pictureURL = $getItemValue(ctx, "Picture URL");
    var pictureId = encodedId + "picture";
    var pictureMarkup = Srch.ContentBySearch.getPictureMarkup(pictureURL, 304, 100, ctx.CurrentItem, "cbs-pictureOnTopImg", line1, pictureId);
    var containerId = encodedId + "container";
    var pictureLinkId = encodedId + "pictureLink";
    var pictureContainerId = encodedId + "pictureContainer";
    var dataContainerId = encodedId + "dataContainer";
    var line1LinkId = encodedId + "line1Link";
    var line1Id = encodedId + "line1";
    var line2Id = encodedId + "line2";
    var line3Id = encodedId + "line3";
     _#-->
            <div class="top-content-box" id="_#= containerId =#_" data-displaytemplate="ItemPictureOnTop">
                <div class="top-content-img" id="_#= pictureContainerId =#_">
                    <a class="cbs-pictureImgLink" href="_#= $urlHtmlEncode(url) =#_" title="_#= $htmlEncode(line1) =#_" target="_blank" id="_#= pictureLinkId =#_">
                        _#= pictureMarkup =#_
                    </a>
                </div>
                    <h3 id="_#= line1Id =#_"><a class="cbs-pictureOnTopLine1Link" target="_blank" href="_#= $urlHtmlEncode(url) =#_" title="_#= $htmlEncode(line1) =#_"
    id="_#= line1LinkId =#_"> _#= line1 =#_ </a></h3>      
                    <span class="content-date" title="_#= $htmlEncode(line2) =#_" id="_#= line2Id =#_"><img class="cbs-Thumbnail" src="_#= $urlHtmlEncode(iconURL) =#_"
    alt="_#= $htmlEncode(line1.defaultValueRenderer(line1)) =#_" id="_#= pictureId =#_" />_#=line2=#_</span>                
            </div>
        </div>
    </body>
    </html>
    Basically,ctx.CurrentItem.ServerRedirectedURL is calculated by a managed property ServerRedirectedURL which needs to be included in the display template.
    Problem solved.
    Nehal Bhandari,ATL, Nagarro Softwares

  • Content Search Webpart is not displaying certain fields from my results

    I am rolling up some list data from a subsite to its parent site. The list includes the Title and Health fields. The Health field is an image column. When typing in "Health" into the second line to display for the webpart, it doesnt show anything
    when I save and refresh. The Title field works, however. Another field "Created" also works but I don't need to display that column in the webpart.
    Any ideas how I can fix this?

    Hi,
    Please change the mapping of managed properties for the fields in
    the Item Display Template.
    Displaying the right data in the Content Search web part in SharePoint 2013
    http://www.sharepointnutsandbolts.com/2013/03/displaying-right-data-in-content-search.htmlWe
    can also customize a Display template for content search web part to achieve
    special requirement.
    http://www.myphotoadventures.nl/2014/05/21/sharepoint-2013-custom-display-template-for-content-by-search-web-part/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Room content search in Collaboration not working

    Hi,
    I have created one collaboration room, it has documents and discussions. I have configured the indexing for the room. Now i am using the Search Room iview in collaboration for those particular room to search the discussion forum, it is working fine, but problem in searching the documents inside the room which gives result as 'file not found'.
    But i am using Tool Area Search Option for searching the same content,it will display the files.
    I followed the steps to create and configure the index.
    System Administration --> System Configuration --> KM --> Index Administration --> create the index for those rooms.
    I have set Datasource to "room_extension" in the index and "collaboration" folder for discussion search. please let me know if I miss anything.
    Thanks in Advance..
    Prakash.

    Prakash,
      Which template have you used for room creation- SAP std
    or custom ? if custom think you may have to map iview
    parameters properly for the search iview too.
    It needs the following : RoomStructureRid = roomstructure_rid.
    Also cross check the steps with this url
    http://help.sap.com/saphelp_nw04/helpdata/en/8c/d79e420fc40b31e10000000a1550b0/content.htm
    Points are welcome if this helps
    Regards
    Vineeth

  • Search by tag not working in content search web part

    Hi,
    I am trying to configure content search web part that only pull result with a specific tags. I have created a document library and assign tags on some document, also configured Managed Meta data service and search service application. Schedule search continuous
    crawl.
    If i am not specify any tag content search web part shows results but when I restrict result with specific tag like (#HomePage) it doesn't pull any result, i have also run crawl after tagging documents in document library.
    Kindly help me out.

    Lets suppose you have your "managed metadata property" added to your list/library with name "MetadataColumn". Crawled property is created  with name ows_MetadataColumn (I guess). Then You need to create a new managed property in
    search settings and map it to your crawled property (ows_...).
    Nothing else, use your Managed property in content search webpart and filter your results.
    MVS RAVI KUMAR

  • Content search webpart query is not rendering result as per the expectation !!

    Hello,
    I have 5 Content search web part on same page with different display templates.
    1) Search Aggregated Result - This display search results for announcements,discussion and wiki as per the current user.
    2) My websites - Thsi displays site links as per the current user.
    3) My Tasks - This display task items as per the current user
    4) Daily calendar - This display the results as per the date selection in calendar control.
    For Daily calendar - I have specified calendar control in custom display template to filter search results based on date selection which is working as below:
    I have got the reference from following link that changing the query dynamically to filter search result data - 
    http://sharepointificate.blogspot.in/2014/08/content-search-webpart-dynamic-filtering.html
    ctx.OnPostRender = [];
    ctx.OnPostRender.push(ctx,function(){
    $('<div id="trCalendar" class=""></div>').insertBefore('#idCalender')
    $(document).ready(function () {
    $("#trCalendar").datepicker( {
    onSelect: function(date) {
    var groups = Srch.ScriptApplicationManager.get_current().queryGroups;
    $.each(groups, function () {
    // Look for query groups associated with a CSWP
    if (this.displays != null && this.displays.length > 0) {
    if (this.displays[0] instanceof Srch.Result) {
    // Update and execute query
    var newQuery = 'ContentTypeId:0x0102*'+ ' ' +'EndDate'+ '>=' + date;
    this.dataProvider.set_queryTemplate(newQuery);
    this.dataProvider.issueQuery();
    selectWeek: true,
    However, this date query is being applied for every search result web part mentioned in page.
    How can I make it work only for the Daily Calendar web part ?
    Your answer will be much appreciated.
    Thanks and Regards,
    Dipti Chhatrapati

    Dipti,
    How about replacing you line as below (with content class)
    var newQuery = 'ContentTypeId:0x0102*'+ ' ' +'EndDate'+ '>=' + date;
    with
    var newQuery = 'contentclass:STS_ListItem_Events'+ ' ' +'EndDate'+ '>=' + date;
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Content Search Webpart Query (urltoken to list metadata column)

    Im developing a internet site using Cross site publishing.
    In the publishing site collection, on a category page, Im trying to query the relevant contents
    on a catalog list using urltoken to metadata column on a list using Content search webpart.
    I have created list of departments in the metadata and same is used as part of managed navigation.
    Metadata term : New department
    friendly url : New-department
    When I query the Catalog's metadata column (department column) using the urltoken.1 (new-department) it is not fetching the results
    since the value is New department (space between two words)
    Any help on how to query correctly.

    Hi Ramamor,
    Thanks for posting your issue, Kindly browse below mentioned URLs to configure the query in a content search web part for content Metadata step by step
    http://blogs.technet.com/b/tothesharepoint/archive/2013/03/07/stage-5-connect-your-publishing-site-to-a-catalog.aspx
    http://blogs.technet.com/b/tothesharepoint/archive/2013/05/23/stage-10-configure-the-query-in-a-content-search-web-part-on-a-catalog-item-page.aspx
    http://sp2013.blogspot.in/2012/08/content-search-and-metadata-driven.html
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • What are the possibilities and limitation of using Out of the box content search webpart on SharePoint Online 2013/O365 ?

    Hi All,
    We are migrating from on-premise SharPoint 2010 to SharePoint online 2013.
    I have few questions below: 
    What are the possibilities and limitations of using Out of the box content search webpart?
    Also, how the cross site publishing will work in SharePoint online something with managed navigations and product catalog apporach? if it is not supported, then what are the alternatives to acheive the same?
    Appriciate any commnets/clarifications.Thanks in advance.
    Thanks,
    Dhananjay.

    Here are the possibilities of Content search webparts
    http://office.microsoft.com/en-in/office365-sharepoint-online-enterprise-help/configure-a-content-search-web-part-in-sharepoint-HA104119042.aspx
    http://office.microsoft.com/en-in/office365-sharepoint-online-enterprise-help/when-to-use-the-content-query-web-part-or-the-content-search-web-part-in-sharepoint-HA104206662.aspx
    Compare the strengths and limitations of the Web Parts
    It’s important that you understand the strengths and limitations of the two Web Parts because if you choose the wrong one, your site could run into performance problems. You can use both Web Parts to show content that is based on a query. In a simplified
    world, here’s how you can decide between the two:
    Use the CQWP when you have a limited amount of content, your query is simple, and you don’t expect your content to grow much in the future.
    Use the CSWP in all other scenarios when you want to show content that is based on a query.
    The table below gives a comparison of the two Web Parts:
    Web Part behavior
    Content Query Web Part
    Content Search Web Part
    Query configuration
    Easy
    You’ll need to know about certain search features such as
    managed properties.
    Query across large amounts of content
    Limited
    Yes
    Handle complex queries
    Limited
    Yes
    Scale to handle future content growth
    Limited
    Yes
    Display content from other site collections
    No
    Yes (see
    section below)
    Design of query results can be customized
    Yes, by using XSLT.
    Yes, by using HTML.
    Maintenance cost in a complex site architecture
    High
    Small (see
    section below)
    Narrow down the query results that are displayed in the Web Part
    No
    Yes, in combination with the
    Refinement Web Part.
    It was not there previously but then it was added to Office 365
    http://blogs.office.com/2013/10/29/search-innovations-for-site-and-portal-design-in-sharepoint-online/
    If this helped you resolve your issue, please mark it Answered

  • To search only images in a particular folder of picture library using content search webpart.

    I have Images library where i am storing images in different folders.I need my content search webpart to search and display images in a particular folder in Images Library.For ex: i need to if my Picture Library Name is 'Images' a folder inside that is
    'Travel' which is having some images.I need my content search webpart to pick images from 'Travel' folder only.Any pointers to this will be helpful.

    Hi,
    According to your post, my understanding is that you want to search images in a particular folder via content search web part.
    When we use the search crawl the items in the images library, it crawls the items and folder with the following URL.
    For folder: http://sp13/PublishingImages/Folder1.
    For Items:
    http://sp13/PublishingImages/Forms/DispForm.aspx?ID=itemID
    It not crawls the items as the path
    http://sp13/PublishingImages/Folder1/Item, then we could not use this path to retrieve the items in the folder.
    As a workaround, we can create a custom field in the image library, such as a choice type field named
    Folders(it contains the folder names), when we create a image, we set the folder name in this field.
    Note: we should new a managed property manually to match the Crawled property.
    Then we can use this field to filter the items in a particular folder as below, it works like a charm in  my environment.
    path:"http://sp13/PublishingImages"   Folders=Folder1
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Create document preview in sharepoint 2013 content search webpart slideshow

    I want to show preview of documents(word,excel,ppt or videos) in the content search webpart slideshow view. By default we can show images from picture library in the content search webpart slide show view. But i need to show preview of documents(like search
    results document preview) in the help me to content search webpart slider. 
    Please help me to solve this issue!
    Thanks in advance!
    SangeethaAjith

    Hi, Thanks for your reply. Actually m working with Sharepoint Online 2013. I need to show the doc preview
    in content search webpart slideshow. If u have any idea pls let me know.
    The content search webpart is fetching documents using query and we didnt know what results are going to come. For the result documents i need to show the preview.

  • How to show catalog items with Approval Status:Pending in a Content Search Webpart

    How to show catalog items with Approval Status:Pending in a Content Search Webpart using cross site publishing. Thanks in advance.

    I don't think you're going to be able to. Usually Approval Status is used in conjunction with Major/Minor versioning and while Approval Status is pending the item is usually a draft.
    As a result the search crawler should not be able to see the draft items as it would not have the necessary rights to do so. (Good practice ensures that the Search Crawler has only read access and is not an elevated account for this reason)
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • Choose display template based on result type - Content search webpart

    Hi 
    Is it possible to choose display template based on result type in content search webpart same like search results web part? If not available can it be achieved programmatically?
    The content search web part is queried against document content type. Based on the document type, the document has to be seen in the hover template.
    Please advise.

    Hi,
    From your description, my understanding is that you want to choose display template based on result type as search result Webpart in Content Search Webpart.
    You could customize your display template for Content Search Web Part, please refer to this article:
    http://www.benprins.net/2014/05/21/sharepoint-2013-custom-display-template-for-content-by-search-web-part/
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • HT4623 Since I installed the new update, my search feature will not work. It will only search my ipad. None of the searh engines work in Safari

    Since I installed the new operating System, my search feature does not work. I can only search my ipad. None of the search engines work in Safari. How do I fix it?

    Just just to make sure, you do not see something like this when you try to do a search in Safari?
    Try clearing Safari in Settings>Safari>Clear Cookies and data. Then close Safari. Double tap the home button and drag the mini Safari window up toward the top of the screen in the multitasking display in order to close the app. Now reboot the iPad. Hold down on the sleep and home buttons at the same time until the Apple Logo appears on the screen.
    Try Safari again.
    The Spotlight Search feature on the iPad search) no longer searches the web, that is simply the way that Spotlight works now. Sort of a backwards move IMO but somewhat typical of Apple these days.

  • Catalog search tool is not working.

    Hi ,
    IN CCM catalog search tool. When i wrote some thing on the find field click on go button. Nothing will happen. It should search the products in the catalog ..can any one tell why search option is not working inthe catalog search tool...

    Hello,
    first delete system cache by going to ...
    tools -> internet options -> Delete files with offline content , delete cookies and clear history.
    If not working then contact basis ..delete the template and MIME cache in SRM thrugh SITSPMON and reactivate  all the internet servies  through SICF.
    Thanks
    Venkatesh.
    PS : please reward for helpful answer

  • Content Search Webpart Property Filter

    Hi,
     I have two pages. In first page i added custom webpart with one textbox and search button. In second page i have content search webpart that should filter the result based on the property value we enter in the text box.
    I added the property filter PropertyNameOWSTEXT:{QueryString.MyParameter1} to the query. I am passing the value on click of button through query string to second page. I have results matching the query in my list but Content Serach Webpart not showing any
    results.
    Can anybody help???
    Thanks

    Hi,
    I am looking for solution to filter data on content search web part ( SP 2013)  by using  URL.
    For example:
    My URL is: http://SiteCollName/Sitename/Pages/PageName.aspx?MyParameter1=XXXX
    Result : Display results that field "My field" contains XXXX.
    nikita

Maybe you are looking for

  • Number of characters in a dynamic form/list/mysql table

    Hi all, I mentioned this in a previous post but wanted to give it a home of it's own.  I have a dynamic list, updated and edited by a dynamic form.  However, with one of the columns I can only fit about 50% / 4 lines of text in.  I am unsure whether

  • Hi upload Reconciliation accounts

    Hi Gurus, How to upload reconciliations accounts ex:if i upload vendor balances individually, how reconciliation a/c will be updated, please explain the procedure how it will be updated, what steps we take before uploading vendor a/c and reconciliati

  • Where to find System Restore physical disc replacemen​t?

    Alright so I got an older model Notebook/Tablet PC and Tried Windows 8 on it, since Win8 is really App Intense and set up for Touch Screen type interface and all that. Well... fingerprint reader and lots of other things simply don't work. Tried all t

  • My MacBook Pro serial number is invalid

    when entering my serial number into my account, it says my mac book pro serial number is invalid. 

  • Deployment of JWS 1.2 with 1.4.0_03

    OK I know that JWS 1.2 is bundle with 1.4.1 but due to graphic driver bugs with DirectX and ATI graphics cards, we cannot deploy the 1.4.1 runtime installation. Question: Has anyone had problems running JWS1.2 with JRE 1.4.0_03 which we use as our cu