Crawl run endlessly without results

SP2013

Hello everyone,

Today I’ll talk about an error which may occur with search on-premise.

When you have a lot a document and not a big farm, the crawl can take a long time, but sometimes it takes a looooooooooooooooooooooong time without any result!

Something like this

searchnotstopping1

As you see in this crawl log, it has been more than 16 hours without nothing (no errors, no successes, nothing…)

If that happens to you, I would suggest those 3 simple steps

Go to the content source and stop all crawl

searchnotstopping2

Open services and reset SPSearchHostController Service. 

Warning : Doing this will cause an short interruption of the search in your farm, some user can experience a “Something went wrong” message if they perform a search shortly after the reset. Do this during planified maintenance hour if the search is already in use.

searchnotstopping3.png

Go to the content source and start all crawl

searchnotstopping4

After that, you should get some result in the crawl log

searchnotstopping5

 

Hoping this helps

Christopher

Advertisements

Quick Win – Change default permission on site “Share”

win

Hello everyone,

Today I’ll talk about the default access you can give to people using the “Share” functionality on site level.

When you share a site, depending on your permission on the current site, you will have one of the two following processes

Case 1: you don’t have the permission to give access.

During the share, you will see this screen.

01

And there is a new request for the site owner on the “Access Request” list

03

In this request, the site owner can choose another group or give direct access to the person.

04

 

05

Case 2: you have the permission to give access.

02

In this screen, you can see that you invite people to “EDIT”. You can choose another group or give direct access to the person.

 

What if I don’t want them to EDIT but to READ by default?

If you want to set another group as the default group for Share functionality, you can just specify the wanted group as the default group for the site.

For this

  1. Go to “Site Settings” and click the “People and Groups”
  2. Select the group you want as default one
  3. Click on “Settings” and again on “Make Default Group”

06

 

When it’s done, if you share the site, you can see that the permission requested if the group you just specified

07

 

Note: The Share will only works if the target people doesn’t have access to the site. If you set the default group as “Members” and someone is already a “Visitor”, the share won’t ask for him to be added in the “Members” group.

 

Hoping this helps

Christopher.

 

 

Download all files from library

pnp logo

Hello everyone,

Today I’ll share a little PowerShell script I made some time ago. It allows you to download all files of a single library, looping through all subfolders. This script use PNP PowerShell .

It was done for Office365 but should work the same way for onpremise. You just need to update the parameter on the top and run it. It will prompt you for your credentials to access the site and then download all the files to the specified directory (creating it if it doesn’t exist)

Hoping this helps!

Christopher

 

Use default rendering in JSLink

SP2013

Hello everyone,

Today I will talk about the JsLink we use to make custom displays in our good old classic 2013 interface.

A typical example is the following

In this example, we change the rendering of the “AssignedTo” field with a custom html of our own.

This example can sometimes be too much for simple requests such as “I want to display this field in Read-Only”.

To do this, you can use the default SharePoint rendering!

I want to thank the person who took time to compile this really useful information!

For my part, my source is the following: https://sharepoint.stackexchange.com/questions/112506/sharepoint-2013-js-link-return-default-field-rendering

Hoping this helps !

Christopher.