I will just leave this here, since it helped us a lot:

We have a Content Search Web part with custom Display Templates with link to edit item.
After user edit item, we want to refresh the search result, for example the item should be removed from the search result based on some criteria.

1 Answer 1


What we did was to use this marvelous trick by @user1337886 and @damjan-tomic: Reindex Pages Library using powershell. Might be originating from something like http://blog.icsharp.net/2013/04/how-to-force-web-list-or-library-to-recrawl.html .
Just instead of using PowerShell or C# we did it using JSOM, which makes it a tiny bit different, and we triggered the code on modal close (from Display Template).

Here is the gist (without modal):

var listTitle = 'List title';
var folder = c.get_web().get_lists().getByTitle(listTitle).get_rootFolder();
var properties = folder.get_properties();
c.executeQueryAsync(function () {
    var version;
    try {
        version = properties.get_item('vti_searchversion');
    } catch (e) {
        version = 0;

    properties.set_item('vti_searchversion', version + 1);
    c.executeQueryAsync(function () {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.