I have an index that I would like to track a subset of elements over time. I can get most of the way to what I want with reindex.
However, I can't see a way to change the _id, and because my data is generally unchanging, this causes a problem. The reindex doesn't run every time because, I think, the ids are the same.
One solution would be to create a time-based index. Is this the best solution? Has anyone else solved this problem? Someone already asked this type of question and had the answer of time-based index given. I just wanted to double check, and also see if there is a different approach.
As a cartoonish example, because my data really is pretty stagnant, let's say I am tracking the trees in my yard - type, height, radius, name. I only change this, prompting a new id, when one of those fields changes. But every day at midnight I want a reindex so I can see the height of my trees changing over a year.
P.S. I can't use the tag historical because I lack the rep, if someone has advice on tags for this so I can know better, please let me know!