Moving blogs post with Attachments using Rest API

We are trying to move blogs posts to a blog in an Archive Group using Rest.  When a blog post contains an attachment, I'm finding that there is a duplicate file created in Te_attachments table and the original attachment is marked as isindexed so it still shows up in Search for the original group.  Is there a proper way to handle the attachment?

Parents
No Data
Reply
  • Former Member
    0 Former Member in reply to Navy OGC

    How are you populating the custom search facet? It doesn't line up with tag/convert code you sent. Do you have additional customizations around populating search records?

    At this point, the root cause that needs to be solved is the blog posts that are not being indexed (SELECT * FROM te_Blog_Posts WHERE IsIndexed = 0). Search Indexing does not ignore posts, and would throw errors if something goes wrong in the indexing. How often is Search Index Job running? Is there something custom that is continuing to update these posts, for example an AfterUpdate listener calling the Update API?

Children
  • There are no customization to search results other than the facet being buttons instead of dropdownlists.  That is just HTML and CSS. There are no updates to blog posts by customizations.  Again the search works and does not list any errors indexing unless the attachment is over 40MB which is normal.  There are 349 records with isindexed=0 in that te_Blog_posts table.  This is more than 124 that was due to moving posts to a new group...