Copied to clipboard

Flag this post as spam?

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


  • Jeric 122 posts 192 karma points
    Nov 01, 2013 @ 12:43
    Jeric
    0

    Examine index doesn't gets rebuilds when I create new Document using umbraco.cms.businesslogic.web.Document

    I am able to create a published document with the umbraco.cms.businesslogic.web.Document.

    But the thing is, the new Content node created are not being indexed.

    I've tried to use the below but it is still not working.

    Any idea what needs to be done? Appreciate any help on this

    ExamineManager.Instance.IndexProviderCollection["Name of my Indexer"].RebuildIndex();
    umbraco.library.UpdateDocumentCache(newEventPage.Id);
  • Dan Lister 416 posts 1974 karma points c-trib
    Nov 01, 2013 @ 16:46
    Dan Lister
    0

    Might seem a silly question but are the Examine Index paths correct? Also, do you see the new Document node when in the back office?

  • Jeric 122 posts 192 karma points
    Nov 01, 2013 @ 20:11
    Jeric
    0

    Yup the Examine Index path is correct and the Document node gets created and published.

    The weird thing is, the new Document nodes that I've created only gets index when I manually click on "Save and publish" eventhough the node has already been published with the umbraco.cms.businesslogic.web.Document

  • Sean Mooney 131 posts 158 karma points c-trib
    Nov 01, 2013 @ 20:44
    Sean Mooney
    0

    I had the same issue with members in Umbraco version 4.9.0.

    The new member would not show up in the index after creating with Member.MakeNew() and saving it.

    What I did to fix it was to load it again and call save:

    Dim m1 As Member = Member.MakeNew(txtUsername.Text, mt, u)
    m1.Email = txtEmail.Text
    m1.Save()
    '--Trigger save again to popluate examine index
    Dim tempM As New Member(m1.Id)
    tempM.Save()
Please Sign in or register to post replies

Write your reply to:

Draft