You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently indexed a bunch of stories with an "original_url" of "mediacloud.org/need_canonical_url", without correctly setting the canonical domain for those stories, so they're effectively hidden from our front end entirely. This presents a new problem- can we update a document in place within ES? We need a script which will, for each problematic story:
Grab the story id
Determine the correct url/canonical domain
Write an update to ES to correct the canonical_domain field
@m453h, I think the first steps is just to duplicate @philbudne's histogram of all of the offending stories, and go from there!
If I'm understanding the problem correctly, the data is all present, just in the wrong place- so there's no need to go back to the original data that we queued up, right?
The text was updated successfully, but these errors were encountered:
We recently indexed a bunch of stories with an "original_url" of "mediacloud.org/need_canonical_url", without correctly setting the canonical domain for those stories, so they're effectively hidden from our front end entirely. This presents a new problem- can we update a document in place within ES? We need a script which will, for each problematic story:
@m453h, I think the first steps is just to duplicate @philbudne's histogram of all of the offending stories, and go from there!
If I'm understanding the problem correctly, the data is all present, just in the wrong place- so there's no need to go back to the original data that we queued up, right?
The text was updated successfully, but these errors were encountered: