We have a 2013 farm that is crawling a 2007 content source with a lot of outdated content in it. We'd really like to exclude items from the crawl based on their last modified date, but we're having trouble figuring out the best way to do it. Does anyone have any suggestions for how to do it, preferably keeping the SP object model intact?
The best way we've come up with is running a PS script to get the modified dates and using that to programmatically create/update crawl rules that exclude the old items. It seems like a messy solution to what should be an easy problem, but I don't know where else to go with it at this point.
Edit: Per the title of the question, answers can address how to crawl based on any property, not just LastModifiedDate, because that would be useful for more than just my specific situation.