Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Frans de Jong 548 posts 1840 karma points MVP 4x c-trib
    Nov 06, 2015 @ 10:02
    Frans de Jong
    0

    Re-index has error

    When I click re-index on umbraco 7.3.1 (clean install) it throws an error:

    enter image description here

  • Dennis Flæng Jørgensen 35 posts 145 karma points c-trib
    Dec 15, 2015 @ 11:32
    Dennis Flæng Jørgensen
    0

    According to this the parameterless constructor has been removed.

    https://our.umbraco.org/forum/developers/api-questions/71765-testing-73-contentservice-c-new-contentservice

    I've tried downloading the source code from CodePlex and fix it - but i cant make it build the project correctly. The problem lays in this class...

    https://fulltextsearch.codeplex.com/SourceControl/latest#Governor.Umbraco.FullTextSearch/Admin/AdminActions.cs

    ...and should be as simple as chaning:

    var content = new ContentService().GetRootContent();

    to:

    var content = ApplicationContext.Current.Services.ContentService;

    But again... Since i cant make it build correctly i didnt exacly fix it. If anyone knows how to make it build correctly, the problem should be easy to fix.

  • John B 5 posts 75 karma points
    Sep 05, 2016 @ 08:26
    John B
    0

    If somebody faced this issue too - 1) i've changed: var content = new ContentService().GetRootContent();

    to: var content = UmbracoContext.Current.Application.Services.ContentService.GetRootContent();

    2) After that fix nuget packages (if they corrupted); 3) and in project you have folder BuildPackage.FullTextSearch, inside that u have .bat file - run it, and in "Governor.Umbraco.FullTextSearch/bin/Release/" folder u will get new dll file, which u can change in bin folder. May it's wrong way, but it works for me now :)

  • Jeremy Pyne 106 posts 246 karma points MVP c-trib
    Sep 09, 2016 @ 16:32
    Jeremy Pyne
    100

    That code is depreciated yes. though it still works for me on 7.5, not sure why not for you. Anyway, there is an updated project here. You can check it out and compile a new Governor.Umbraco.FullTextSearch.dll if needed.

    https://github.com/pynej/umbraco-fulltextsearch

Please Sign in or register to post replies

Write your reply to:

Draft