Questions tagged [content-search-web-part]

Content Search Web Part displays search results in a way that you can easily format. Each Content Search Web Part is associated with a search query and shows the results for that search query. You can use display templates to change how search results appear on the page. Display templates are snippets of HTML and JavaScript that render the information returned by SharePoint. The information to be displayed gets inserted into the page in JSON format.

Filter by
Sorted by
Tagged with
0
votes
1answer
525 views

How to Add Sort drop down in Content search webpart?

In SharePoint Online I want to sort search result by multiple fields for that I want to add sort dropdown in Content Search Web Part ?
1
vote
1answer
1k views

KQL wildcard operator problem in Sharepoint 2016 search web part

In my Sharepoint 2013 on-premise environment, I have a page that contain a Content Search WebPart. When I pass some parameters like the firstname or lastname using the wildcard * character in the URL ...
0
votes
1answer
1k views

Content search web part - list subsite and its logo is vanished

I have created Content search web part with the help of MVP Benjamin Niaulin's En-Sharegate Blog and i displayed all the sub sites in my site collection, on my site's home page. But when I see this ...
1
vote
1answer
2k views

No Results by Content Search Webpart

Why I get no results in my Content search Webpart in Office 365? The query Shows me results by testing, but not in the site.
1
vote
0answers
192 views

Content Search Web Part Slider issue

I have created a content search slider web part on my site's home page which acts as a nice looking slider that pulls images from a picture library. But am facing an issue, even though I have ...
0
votes
1answer
677 views

Display Recurring Events in Search Result Webparts

I need to show results from an Event List In Content Search Web part, including recurring events. The iissue is that I am not able to retrieve the recurrent events. Remark: I know this can be ...
1
vote
1answer
492 views

Apply branding Content Search web part

I have created a content search web part in my landing page of my SP 2013 site collection. This shows all the subsites under this site collection.The end user says, the default look and feel of this ...
0
votes
2answers
808 views

AddPostRenderCallback doesn't fire on subsequent page clicks

I have an AddPostRenderCallback that is working correctly when the page first loads but when I click to the second or third page of results it doesn't fire again. It's just some additional jquery and ...
3
votes
1answer
422 views

Is it possible to crawl list for every 5 minutes in SharePoint 2013?

Is it possible to crawl custom list data for every 5 minutes in SharePoint 2013 to retrieve latest results. I want to use content search webpart to display results from list, I need results within 5 ...
2
votes
1answer
89 views

Can Lookup Column be displayed?

I use Cross-site publishing in SP13, create a authoring site and a intranet(display site.) I have created a list of content including a lookup column for contact person; look up from another Contact ...
1
vote
0answers
192 views

After adding a managed property in Query Text the Refiners disappear in Build your query tab

I have the following query: path:{Site.URL} ContentTypeId:0x0102* clsStartDate>{Today-1} and when I use it in the Query Text of Content Search Web Part, the Refiners in the refiners tab disappear. ...
10
votes
0answers
428 views

Content search and content type

In SP 2013 on-prem publishing site, I have a Content Search WebPart that shows a list of pages by querying for the custom content type id, and it worked fine until I edited the navigation settings on ...
1
vote
0answers
768 views

content search not visible in visitor permission access

I using SP2013 & have used slideshow of content search web part, now when I give visitor permission to someone they can't see that slideshow i.e. content search web part doesn't show up, it shows ...
0
votes
1answer
1k views

Sharepoint CSWP - Link URL - Open in new window

I have a CSWP which I have configured - added a new URL Column and redirected links to the new location. The issue is now getting the links to open in a new window. The new custom column is a text ...
2
votes
0answers
246 views

Date issues with search

In SP 2013 on prem, I am using content search web part to show customized article pages. The articles are shown in the display template if the article start date is greater than or equal to today. ...
3
votes
1answer
445 views

How to get top rated pages in content search web part

Hi I'm working on Content Search Web Part in SharePoint 2013. I've configured and getting document from all site collection. Now I want to get Top rated documents in Content Search web part. For ...
3
votes
1answer
88 views

Content Search Webpart Custom Image

I am using the content search webpart to show a list of Project sites using the template ID, I would like to have a custom image next to each project, currently it is showing the Project Site logo ...
1
vote
0answers
396 views

How to use SP13 Search to show the most read blog posts during last 7 days?

We have 2 blogs, on different sites, on our intranet. On the homepage, we use a content by Content Search Web Part because we'd like to show a top 5 list of the most read/viewed posts (from either of ...
1
vote
1answer
301 views

How to get all users in a site using Content Search WebPart - Office365

I have to display all users(in a site) in a content search webpart using custom display templates. There was one managed property "SiteMembers" in the search schema, but it's not linked to any crawled ...
3
votes
0answers
83 views

Which content source is responsible for updating the NumComments field?

We're running SP13 and have a news functionality based on the standard blog site template. A content by search web part is being used to roll up the content and display it on the homepage. We copied ...
3
votes
0answers
126 views

Filter content search by date and time of creation

I'm using a content search web part to show news on my site. I want to show the items following a publishing date and time. I know there's the parameter StartDate <= {Today}. How can I make it ...
4
votes
1answer
1k views

Display template not updating outside server?

We have a SharePoint on-prem 2013 farm with 2 app, 2 WFE, 2 search and 2 SQL servers. We recently updated a display template and added a new Content Search web part. While we can see that new ...
0
votes
1answer
400 views

Get all the pages inside "Pages" folder

So when going in "Site contents" you have "Pages" list, i have a folder inside it which is called News and i have created some news using a specific template. Now i'm wondering how do i aim for all ...
0
votes
1answer
118 views

Long and inconsistent updates times of content in content by search web part

We run SharePoint Server 2013 for our company intranet portal. On this portal we have a news functionality, based on the standard blog site template, and we show the latest blog posts via a Content by ...
2
votes
3answers
3k views

Using a Content Search Web Part to show items from multiple subsites ,that have their status = "Pending" & their Assing-To = "the current login user"

I am working on a site collection of type Team Site inside SharePoint server 2013. and i have the following :- The site collection have 10 sub-sites. all the 10 sub-sites were created using the same ...
2
votes
1answer
739 views

Content Search Web Part - Query String

I would like to filter CSWP results based on query string. I have CSWP in a page ItemDetail.aspx, the query is Path:"http://sp03:2016/Lists/Announcement%20Custom/" contentclass="...
1
vote
0answers
603 views

Search Results/Content Search Web part output in a list view

Is there a way to display more columns from a search results or content search web part and then those columns in a list view? How can it be done? Basically i would like to display search results (...
0
votes
2answers
3k views

How to remove the seconds part from a date and time property

We have a standard Calendar app in SP2013 with some events that we roll up on a homepage using a content search web part (the Two Lines display template). We show two properties: the title and the ...
1
vote
2answers
770 views

How to get logged in username in custom display template for CSWP using CSR

I am using a custom display template for Content search web part. I am able to get currentItem's properties but how to get logged in user's username using client slide rendering.
5
votes
5answers
15k views

How to check correct Crawled property for a list column

I have a couple of list columns such as Status, DeptName in my List. But when I am looking for crawled property associated to these columns in Search Schema, I see a list of so many crawled properties ...
0
votes
1answer
1k views

How to use Custom List Column as refiners in Content Search Web Part

I am using Content Search Web part in Sharepoint Online Site. The search Query is set to retrive List items for one list only like this: path:"https://XXXXXXX.sharepoint.com/sites/SiteName/Lists/...
3
votes
1answer
1k views

CSWP Query: How to concatenate a string to query variable {Site.URL}

I want to limit a query in a Content Search Web Part to just the Pages library of the current site (exclude any sub-sites). Is there anyway to correctly concatenate "Pages" to the query variable {...
2
votes
0answers
97 views

Using content search web part to build a site navigation (SP 2013)

Problem: I've got a site with 15 subsites, each which in turn has many pages. I want to use a content search web part to query all sub sites, and display each sub site as a heading, with the three ...
0
votes
0answers
1k views

CSWP - Display List of List and Libraries

I would like to use the out of the box Content Search WebPart to show a list of Document Libraries available in the current site, like: Document Library 01 Document Library 02 Document Library 03 ......
0
votes
1answer
620 views

Use checkbox value in search query

I'm using Content By Search WebPart to list Announcements from different site collections. By using below query I'm able to show announcement items from different site collections. path:"http://...
1
vote
0answers
173 views

Mapping a Picture URL to a Calendar Content Search Webpart in SP 2013

I created a Calendar library and added two new site columns; one type an Image and the other a Hyperlink. Then mapped an image to both, that I want to use as a reference with the Picture URL. ...
3
votes
1answer
2k views

what is the difference between ows_q and ows_q_text

When I try to create a managed property in Search and I try to select a crawled property, I get two sort of crawled properties for the same site column. ows_q_TDC_x0020_Article_x0020_Number and ...
0
votes
1answer
226 views

Content search web part, query search, is it possible to perform this filter

I have one CSWP that displays article pages from a single site. The article pages have 2 different tags (a & b). I would like the tags a to always be displayed, no matter how much time passes, ...
7
votes
3answers
15k views

What features do I have to activate to get Content search web part (CSWP)

I thought that by enabling: SharePoint Server Publishing Infrastructure (Site collection feature) SharePoint Server Standard Site features (Site feature) I would get the content search web part, but ...
1
vote
0answers
2k views

How to make Content Search Web part look like OOTB list

I am trying to query a few lists in subsites and I have been asked to display them or have a look and feel of OOTB Lists. with the capability to filter, sort. How can I do that? is it easy to build ...
0
votes
1answer
345 views

Query multiple lists in different sites and display them like a OOTB list

I have different subsites which contain lists called "Articles". On the root site I need to query these lists ("Articles") and display all them in a OOTB "list like" fashion. What is the best way to ...
0
votes
0answers
588 views

Content Search webpart not displaying results

The content search web part is not showing the results in the page, however I see the results when I test the query: (IsDocument:"True") Path:{SiteCollection.URL} NOT FileExtension:aspx NOT ...
3
votes
2answers
2k views

Content search config: not able to filter by date

I have built a simple content search web part based on a blog (posts). When it comes down to filter by published date (there are blog posts published 'in the future' that do show up in the query ...
3
votes
1answer
7k views

Managed Properties not available as Refiners on Content Search web part (SharePoint Online)

I have managed metadata site columns where I’ve mapped the ows_ crawled property from a library to ‘RefinableString’s in the search schema. The ‘refinable’ box is ticked and I did this a few days ago ...
1
vote
1answer
730 views

The ModifiedOWSDATE do not match with LastModifiedDate

We are using SP2013 on-premise enterprise. There is a CSWP show latest 20 updated document or webpages on entire farm. First, the search query is sorted by "LastModifiedDate". Secondly, the CSWP ...
0
votes
0answers
264 views

SP2013: is content search web part query builder SORTING tab fake?

We are using SP2013 on-premise enterprise edition. On a site we use Content Search Web part to show the latest document and pages in entire farm. In the CSWP query builder, we can list all the ...
1
vote
0answers
88 views

Item template doesn't include ListItemID?

I have a content search webpart and am using a modified version of the default Item-Picture3Lines.html template. The custom parts are to add our own "like" button. <div class="like-icon" data-item-...
0
votes
1answer
623 views

SP2013 - Blog Comment Count?

I am trying to style a Content Search Web Part to pull in all the blogs across a specific site collection. I'm trying to pull the following information: Blog site, author name (w/ presence), created ...
0
votes
0answers
216 views

Datetime offset 2 hours

I have edited my display template for my content search web part. I have added a new managed property to my display template. The managed property is a datetime field wich is mapped to the recently ...
2
votes
3answers
11k views

how to show a list of all subsites that are under a parent subsite using Web Parts. similar to the list inside the site content

I have team site collection inside SharePoint 2013. Where I created a parent sub site inside it. Then under the parent sub site I created many sub sites. Now I need inside the parent sub site's home ...