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
0 answers
31 views

SPFx isHtmlString: true on dynamic content (lists)

I'm struggling making web parts with lists on it searchable using SPFx. My static react cards are working just fine based on this solution: How to make SPFx web part content searchable But then for ...
llermaly's user avatar
  • 101
1 vote
1 answer
230 views

Refiners not working for custom search results web part in SharePoint Online Multi-Geo tenant

We have a SharePoint Online tenant with 5 Geo tenants. Users have their profiles in different Geo tenants. We also have 2 custom properties set in each user profile. We mapped crawl properties for ...
Dikesh Gandhi's user avatar
1 vote
0 answers
66 views

SharePoint Online Search reports and Usage Reports in Search got error "An unexpected error has occurred."

I am a Sharepoint Admin. In Admin Center, I go to SharePoint, more features, Search, when I go to open "Usage Reports" or Search Reports I got error "Sorry, something went wrong An ...
CC Wu's user avatar
  • 11
0 votes
1 answer
178 views

How to change "There are no items to show" message for Item Display Template?

We are using SP2016 enterprise and I am trying to customize a Item Display template for a Content Search web part. My work is based on existing template under Master Page Gallery > Display ...
Mark L's user avatar
  • 4,065
0 votes
1 answer
119 views

Recent Documents" Web Parts on Classic Page

I would like users to view the most recent documents. I know this web part is part of the communication site for modern sites. Can I replicate the same in a classic page? Looking for some ideas/...
naijacoder's user avatar
  • 4,232
0 votes
1 answer
134 views

How to call a JavaScript inline of Item display template?

I am editing an Item Display Template (for a content search web part) on SP2016 enterprise. In the display template (Item_LargePicture.html), I inserted a JavaScript function to randomly return a ...
Mark L's user avatar
  • 4,065
1 vote
1 answer
29 views

Search results security trimming for users, how it works?

I understand that during the indexing process (in context of lists/libraries) there are some library and item level ACL's generated, containing the users and groups that have access to the specified ...
John Mokien's user avatar
0 votes
1 answer
81 views

How to filter Content Search Webpart results on Managed Metadata term dynamically through URL Parameter

I have a landing page with a content search webpart that I want to be dynamically filtered by an URL like this one http://mysharepoint.com/site1/home.aspx?tagterm=#0a1658abf-cc9d-495c-a8cc-...
Christopher's user avatar
3 votes
1 answer
184 views

Link Document Library to Search Filter

I have a SharePoint Content site which also has a document library. The document library has columns that classify the document. I am trying to (on the homepage of the content site) add a Search ...
GK89's user avatar
  • 47
0 votes
2 answers
90 views

Filter Content Search WebPart on libraries with the same name

I have a site template that has a library called ContentLibrary. I want to do a search that returns only item and document results from those libraries that are in various sites and site collections. ...
Christopher's user avatar
0 votes
0 answers
26 views

Unable to filter the items based on the content type inside my content search web part

I have a content search web part inside our sharepoint online site collection, and i want to show items which are under certain content type, but when i use the following to get the items which are ...
John John's user avatar
1 vote
3 answers
2k views

How to implement Content Search Web Part in SharePoint Modern experience?

In the classic experience i found this official MS documentation (link here), my question is how can I do the same in the Modern experience ?
AIMEN BOULAHIA's user avatar
0 votes
2 answers
74 views

Removing a List from a Search

I have a list where new users are added as they input there information. The problem is that if a user do a search they can pull up other users ss. How can I prevent other users from searching in the ...
user87598's user avatar
1 vote
2 answers
4k views

How to search only some specific sites using result source - SharePoint Online

I have couple of sites and subsites and would like to create a result source just for these sites. Then my intention is to add a new search webpart or use the existing one but change it to use my new ...
naijacoder's user avatar
  • 4,232
0 votes
1 answer
307 views

Cannot seem to access Calculated column in Display Template via Managed Property mapping

Here is my situation: I have a test/development site on SharePoint Online/Office 365 called TestSite3, and within that site a sub-site called TestBlog3 (a Blog site for making Posts). I want to use ...
dtkdanwork's user avatar
1 vote
1 answer
70 views

multiple libraries, is it possible to retreive in CSWP or similar the files checked out?

In a multiple libraries scenario (400+ in the same site) of files with a content type, I would like to retrieve the elements that are checked out to someone (not a specific person). I am trying to ...
susan's user avatar
  • 2,648
0 votes
1 answer
221 views

How to exclude the specific category result(post) using query?

I’ve a blog site where 20+ categories are there.Now my requirement is using content search webpart I have to fetch some specific categories post using search query. Only posts out of specific ...
Rajrup Bhattacharya's user avatar
0 votes
1 answer
28 views

SharePoint Online, catch Content Search paging event

Does anybody know how to catch paging event in javascript? I need to add some markup before paging buttons, but this webpart is loaded dynamically. Tried to review "Item_TwoLines.html" Display ...
Gennady G's user avatar
  • 1,623
1 vote
1 answer
215 views

SharePoint 5000 item limit threshold in sharepoint 2016

I know the issue is quite old and solved too many times, but for my case the solution should be faster and sophisticate as much as I can. The case is, my sites are migrated from SharePoint 2013 to ...
Imen Turki's user avatar
  • 2,183
0 votes
1 answer
34 views

Content Search Query Webpart

I have created a Content Search Query Web part which go through a document library and shows the result based on the column (metadata). The old metadata was LGBTI and it was working fine, however ...
Harris's user avatar
  • 581
0 votes
1 answer
100 views

Content Search Webpart missing "new" Items from List Query

I've created a Content Search WebPart on my SharePoint 2016 site page, and it's missing items from the list which have the "new" tag on them, meaning they were newly created. The following is what my ...
veggiedude's user avatar
1 vote
0 answers
67 views

Is there a way to allow the "Content Search web part" to show items from on-premises and sharepoint online sites which are based on the same AD

i have the below Content Search web part, which is showing discussion board list items from all our on-premises sites, here is the content search web part settings, where i am defining the on-premises ...
John John's user avatar
1 vote
0 answers
76 views

Blog posts from a user are not showing to content search web part

On SharePoint 2013, there is a content search webpart that is displaying all the blogposts from all sites. There is a particular user that his posts are not showing up in the webpart. All the rest ...
dimitrisd's user avatar
  • 289
1 vote
1 answer
59 views

SharePoint Content Search Web Part

I have created one Product list which contains "title" and "brand" column. I have created the query for "title" and "brand" in the content search web part by using a query string. If I pass some ...
Preeti Sahu's user avatar
1 vote
0 answers
53 views

Conditional formating in search display template sharepoint online

Is there any way we can change the property "data-displaytemplate" in search display template based up on condition of the current item . For example when i Hover an item in search i want to display ...
santosh kondapalli's user avatar
0 votes
1 answer
62 views

Content Search web part is missing 2 post items

In SharePoint 2013 on premises, I have added a Content Search Web Part that displays all the latest blogs. The simple query: contentclass:STS_ListItem_Posts and -Title="Welcome to my blog!" I am ...
dimitrisd's user avatar
  • 289
2 votes
1 answer
260 views

SharePoint ContentBySearchWebPart shows OneNote sections instead of OneNote documents

We are using SharePoint 2016. I have added a ContentBySearchWebpart on the welcome page. Here I show the recently added/modified documents. In the search results I see allot of OneNote results because ...
Ola's user avatar
  • 4,395
2 votes
1 answer
588 views

how to change the content search web part query dynamically in share point 2013 site

In my SP site documents or list items are getting tagged with some taxonomy value. I have a SP Page, where I have added Content search web part and the result shows in search results web part on page ...
Kailash Sahoo's user avatar
0 votes
0 answers
285 views

Site Column not appear in meta data Crawl Properties - SharePoint Online

I've created a choice column as site column(Hidepoemdata) and associated with multiple document libraries. I've make Index column for the site column to each document libraries and waited for ...
Jignesh Rajput's user avatar
2 votes
0 answers
580 views

SharePoint 2013: what is the use of "customstrings.js"

I have a Content Search web part with a dynamic query on a SharePoint page in our site. When I added this web part it was throwing below error: One or more of the following resource files failed ...
Ganesh Sanap - MVP's user avatar
0 votes
1 answer
881 views

How do I connect a html search bar to a sharepoint library?

My client asked me for creating a fancy html landing page with a fancy SearchBar, and its done This bar has to find files in a specific sharepoint library. How can I make the custom search bar to ...
ChikenLittleLearns's user avatar
0 votes
1 answer
2k views

Search across multiple MS Teams sites from one MS Teams site

When a Team is created it automatically creates a site collection in SharePoint for the Team created. I have 16 Teams created hence 16 site collections in SP Online. I am wondering if I can search ...
hkhan's user avatar
  • 221
1 vote
2 answers
48 views

Refresh content search SP Online

I added a Content search webpart on my main site. This query has to show me all the subsbite which are created. It's working pretty well but sometimes when I have created a project, I have to wait ...
Cookistador's user avatar
0 votes
2 answers
42 views

Content search web part to return article pages

My scenario: I have added a content search web part to a page and trying to return pages from the link "https://tenantname.sharepoint/sites/sitename/pages/foldername". I have just created the "...
Keshav Taurah's user avatar
2 votes
1 answer
167 views

DocID as a clickable column in Content Search web part

We use the content search web part with a custom display template to show our documents throughout our intranet based on various criteria such as file type, language, Document Type (custom column) etc....
AM2FTW's user avatar
  • 437
2 votes
1 answer
549 views

How to tweak Search Web Part to open search result to new tab

How to tweak Search Web Part to open /search/Pages/ result to new tab instead of redirecting it on the same page ?
BizApps's user avatar
  • 723
0 votes
1 answer
37 views

Script not working for changing number of items to show in content search web part for some users

I have this script to change the number of items to show in CSWP function loadScript(selectObject) { var newItems = parseInt(selectObject.value); var pageUrl = _spPageContextInfo....
Carlos M's user avatar
  • 141
2 votes
1 answer
890 views

PDF Files not opening when clicked from the content search web part

I wrote a custom display template for a content search web part that shows recent documents edited or modified by a user. I added hover functionality as well to allow users to hover. For some reason ...
mdevm's user avatar
  • 1,225
0 votes
1 answer
35 views

JS code for web template only working for full control user

I deployed the control list with paging and item template for using the with Content Search Web Parts, we have realized that users with no Full Control are not able to run the logic in these templates....
Carlos M's user avatar
  • 141
3 votes
1 answer
110 views

How to extend search count in content search Web part?

I have created the sharepoint 2013 content search web part. it shows only maximum of 50 results , i need to extent the count upto 200. is possible to do it in extended content search web part without ...
PGP's user avatar
  • 1,115
0 votes
0 answers
146 views

What is the query variable to reference a subsite's STS_Web property?

I'm looking to create a content search web part on the home page of a subsite that displays documents from the current site collection, matching a particular content type. I'd like to return only the ...
user3566327's user avatar
2 votes
0 answers
233 views

Why pending items and/or pending changes inside our custom list is being excluded/ignored from search

I have a custom list inside our sharepoint 2013 on-premises enterprise farm. now i set the following versioning settings inside our cusotm list:- When someone creates a new item inside the list, its ...
John John's user avatar
2 votes
0 answers
175 views

How to show search word count in document within content search webpart?

I have created the SharePoint content search webpart and search box in sp2013. When I search the world using search box the content search webpart will show the document results based on the word I ...
PGP's user avatar
  • 1,115
1 vote
1 answer
1k views

Navigate to link on image click in content search web part SharePoint Online

Using Content Search Web Part, we are displaying images from picture library.When I click on a image it is redirecting to image's display form but what I need is it should redirect it to specified ...
Swetha's user avatar
  • 377
1 vote
1 answer
24 views

Content By Search Webpart

I am looking into the differences between SharePoint 2016 Standard and Enterprise. Is the Content By Search Webpart in SharePoint Server 2016 still a Enterprise Webpart?
Danny's user avatar
  • 453
0 votes
1 answer
457 views

SharePoint Online CSWP - Limiting Search Results to the root site collection

I'm working in a SharePoint Online setup where https://domainname.com is being used as root site collection of the organization to host intranet content and then they created site collections for ...
Suhas Yerramsetty's user avatar
0 votes
1 answer
49 views

Search Core Results - what is generating the link to update my profile?

I have a SharePoint 2010 "Search Core Results" web part on each departmental site for my company to show the employees in that department. Each web part appears to be identical, with only the "Fixed ...
SomeGuy's user avatar
  • 166
0 votes
1 answer
79 views

SharePoint 2013 Search is not returning result

We are using SharePoint 2013 on-premises enterprise version. The search function on our site not returning results and ending up with no resource found. Before a week it was working fine but now it's ...
Chetan's user avatar
  • 311
0 votes
1 answer
47 views

Some Content Search web parts have RefinableString01 available, and some don't. Can someone tell me how to get it available universally?

I have Content Search web parts on several different pages (SPO). In the Refiners list, sometimes the RefinableString01 is available, and sometimes it isn't. Can anyone tell me how to make it ...
PMartensen's user avatar
0 votes
2 answers
56 views

How can I get my out of the box search to return result.only for the last 3 years

How can I get my out of the box search to return result.only for the last 3 years Thanks in advance
naijacoder's user avatar
  • 4,232

1
2 3 4 5 6