Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi to all, I'm trying to rebuild a custom index from a custom SurfaceController.
I saw and tried many guides found on our.umbraco and on internet but unfortunately none of them worked.
Can someone help me?
Thank you A.
Hello Adriano
How you try this.
public class TestController : SurefaceController { private readonly IndexRebuilder _indexRebuilder; public TestController(IndexRebuilder indexRebuilder) { _indexRebuilder = indexRebuilder; } public ActionResult Index() { _indexRebuilder.RebuildIndex(indexName); } }
i know the Umbraco Code, the are using the IndexRebuilder class when you hit the rebuild index button in examin dashboard. Hope it will work!
Thank you very much Lucas
This works like a charm
Adriano
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to rebuild index from a custom SurfaceController (Umbraco 8.14)
Hi to all, I'm trying to rebuild a custom index from a custom SurfaceController.
I saw and tried many guides found on our.umbraco and on internet but unfortunately none of them worked.
Can someone help me?
Thank you A.
Hello Adriano
How you try this.
i know the Umbraco Code, the are using the IndexRebuilder class when you hit the rebuild index button in examin dashboard. Hope it will work!
Thank you very much Lucas
This works like a charm
Adriano
is working on a reply...