Back in 2012 and even 2007 the docs had a meta tag called appliestoproduct, which allowed to searched just the product docs for the version you were looking for.

This allowed the build of search providers like these:

https://oscc1-public.sharepoint.com/tn-library-searchpage

This functionality is now no longer available