13

In addition to creating a result source (search scope), you can also simply provide the relevant query text directly in the search result web part of your search page. (See below). NOTE: Be sure to include quotation marks around the URL path, I could not get it work otherwise. {searchboxquery} path:"https://siteURL.com/DocumentLibraryName/*" For ...


11

As far as I know in the Office 365 / SharePoint Online, you don't have any control over the schedule for the crawl. This is managed by Microsoft. SharePoint Online targets between 15 minutes and an hour for the time between upload and availability in search results (also known as index freshness). In cases of heavy environment use, this time can ...


8

A Site Collection doesn't have dependency to another Site Collection. Only Web have dependency to it's Root web and Site Collection. To receive all Site Collections and Webs, you need to lose the OR statement and type (contentclass:"STS_Site") (contentclass:"STS_Web") To narrow down the result of sites, and not show all sites, you can add the path ...


7

This is a well identified issue which was fixed with the Oct 2013 CU update to SP 2013. This happens because the managed property ‘Title’ is mapped to crawled property ‘MetadataExtractorTitle’ by default as first priority and there was no way to change the order of this crawled property unless October 2013 Cumulative Update was applied. However, this issue ...


6

Create a search scope and give URL for your specific document library only in the rule. For details please check this link. Help Link Update: For SharePoint 2013 you need to create a Results Source and configure query to search in particular library only and configure your Search Results WebPart to use your Results Source. Please check this link


5

Search is just displaying the data as it got them when it indexed the content. I assume that the text you're highlighting is a quick part showing the version number. What happens is then the following. A user checks out and edits a draft version of the document (8.1) Word updates the quick part to show this version (8.1) At some point the document is ...


4

You can exclude any path you want in the result web part by adding a exclusion to the query. Edit the search results web part and select change query from the menu to the right. Switch to advanced mode and add this in the end of the query: -path:http://site/sites/sitecoll/lists/mylist* I'm not 100% on the syntax, so just add -Path: + your path (including ...


4

It should not affect the refiner since the refiner is working against the search index, not the list's index


4

You could check the property contentclass:STS_List_DocumentLibrary. One link for your reference: http://avalagopi767.blogspot.sg/2016/02/sharepoint-2013-keyword-query-kql.html


4

A few days ago there was a question along the same lines here: Retrieve one library from each site and show the last item using ajax You would need to first get all subsites using this rest endpoint:/_api/web/webs?$expand=Webs Then loop the returned data and grab all items from the list that match the current date. Here's the base endpoint for that (You ...


4

It isn't possible without deploying something to each site. In addition, the search bar will be moving to the SuiteNav, I believe scheduled for end of this month. As for anything in the SuiteNav, it should not be overridden with custom CSS.


4

As mentioned in the comment, you can use the SharePoint Modern Search web part. You can download the package from this url: https://github.com/microsoft-search/pnp-modern-search/releases Once you deploy the solution, it will provide you with few web parts (6 of them), for example, you can add the Refiners web part and it will provide you with a dropdown ...


3

try this one to get result which are related to this content types ContentTypeId:0x0103* AND ContentTypeId:0x0108*


3

I would start with some simple troubleshooting. After uploading and updating your Display Template, did SharePoint create the Test.js sister file? This is the actual file that will be used as the display template. When you create the Result Type rule did you choose the right conditions? I would try Results="Documents" and Content=Microsoft Word and add "...


3

This is exactly what Query Rules were designed for. Query Rules allow you to promote certain results in SharePoint Search. You will find Query Rules under Site Settings. These can be configured either at the Site Collection or Web level. Take a look at these as they will help you understand how to create your own. A great example of this is in People ...


3

It appears to be happening for all result types, so I suspect that you are causing it with a custom master page or CSS file. The hover is a hidden div on most Display Templates in: <div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div> I would debug it by removing the customization and see that normal function ...


3

You have to create the XML file and upload it to the site collection. please see below. Configuring SharePoint 2013 Search for anonymous users To enable anonymous Search REST queries Enable anonymous access on the web application and publishing site. For more information about how to do this, see Manage permission policies for a web application in SharePoint ...


3

clearly, it is SPN issue. You have to make sure the SPN properly created.Could you please run the setspn and get list of all SPN which already created. if you need to allow delegated administrators to configure service principal names (SPNs), you must ensure that their user accounts have the Validated write to service principle name permission. More ...


3

You can specify it as below: $pnp.sp.search({ Querytext: "Documents", RowLimit: 10, RefinementFilters : ["and(Author:Gautam,fileExtension:equals('docx'))"] }).then(function(data){ console.log(data.PrimarySearchResults); });


3

Use one of "unused Managed Properties" named Int00 - Int49. https://docs.microsoft.com/en-us/sharepoint/search/manage-the-search-schema#Schema_Tenant_SiteColl_Alias Basic steps: Create a new Site Column in one of your Site Collections. Add this column to a list or library and add at least one item to the list with data in the new column. Wait for, or ...


3

There is not yet an option through the settings user interface, but it is an option you can set on each site via PnP PowerShell. If you have not already configured your machine to execute PnP PowerShell, follow these instructions first for installing and getting started, then: Connect-PnPOnline -Url https://<<yourFullsiteurl>> -UseWebLogin $...


2

Search for your Crawled Property and make note of the Data Type. (Also in SharePoint 2013 if you used a Site Column you may see your column twice, once for the crawl and once for the automatically created crawled and managed property pair.) When you create your Managed Property, before you click "Add Mapping", ensure that you have selected the right data ...


2

I followed below steps, Add ListItemID managed property to SharePoint result Edit Display Template with below JavaScript and HTML var viewDocumentUrl = ctx.CurrentItem.ParentLink; viewDocumentUrl = viewDocumentUrl.replace("AllItems.aspx","") var viewDocumentHtml = String.format('View Property', viewDocumentUrl, ctx.CurrentItem.ListItemID); var ...


2

I alterd the script of @Benjooster because it doesn't work for me on SharePoint 2013. You need to pass a SearchServiceApplication object as a parameter instead off the name. Also when a crawled property has the option include in idex set to true it won't be deleted. You also need to do an $category.Update() properties will be back when you do a full crawl. ...


2

I have put together a quick PS scrip that should allow you to find, list and then remove unmapped properties. I adapted this from a script I've used before to remove all mapped properties Vadim's Blog. Hope it helps. $searchAppName = "Search Service Application" $categoryName = "Business Data" function RemoveCrawledProperty($crawledPropertyName) { ...


2

I don't think there is a way to query Search via app-only permissions. As a workaround you could use stored credentials and execute the Search using that context. But you need to understand that Search relies on a proper user context to function properly. Unless your security implementation is really simplistic you are likely to see issues where users see ...


2

I used Camlex function "WhereAny" public string exp(string t) { var expressions = new List<Expression<Func<SPListItem, bool>>>(); string token = t; //expressions.Add(x => ((string)x["ContentType"]).Contains("Document")); expressions.Add(x => ((string)x["Area"]).Contains(token)); ...


2

You can customize the Item_Person.html and Item_Person_HoverPanel.html or BETTER copy them and rename them then make changes to the copies. Simply remove the sections you don't want to see. Just curious, why do you need to make this change? The search results are security trimmed.


2

I don't think you can force a Search Language, I believe it defaults to the server language unless you deploy SharePoint language packs. Not clear on what you want with Thubnails. Tey are based on the display templates. If you want to remove them you can change the Display Templates. Edit the Search Results Web Part and Uncheck:Show AlertMe link, Show ...


2

I needed to add "\" before the "S" in Site.URL. Not sure why this is but I may investigate later. {\Site.URL}/Pages


Only top voted, non community-wiki answers of a minimum length are eligible