I was about to comment on BrunoH's answer: https://ux.stackexchange.com/a/122001/98561, which I find a very nice and straightforward solution for desktop users as setting the sliders requires some precision difficult to achieve with touchscreen devices. My comment turned to bo quite lengthy, hence another answer.
I'd usee BrunoH's concept with two additions:
- a radio buttons allowing for explicit choice between range and specific value (I'm not putting manufacture years here out of laziness and because of my next idea)
download bmml source – Wireframes created with Balsamiq Mockups
- a quasi-exponential scale reflecting the supply of the used cars on the market. What I mean, there are not many cars from 1995 comparing to 2005, but we can assume that the total supply of cars manufactured between 1995 and 2000 will roughly be similar to those of 2017 only (more and more cars are manufactured each year and older cars end up on a landfill and not on the market).
Thus the scale may look like this:
download bmml source
Of course it makes it slightly more complicated if I'm looking for a car from 2009 exactly. A solution for this may be a "margin" if "specific year" is chosen, i.e. if I select "2008" with "margin", cars from 2008 +/-1 will be selected and I sort the search results by the manufacture year descending. And the earlier the manufacture date, the larger the margin.
It is a lot of logic behind the scenes, but still for the users that need very exact and detailed search options some "advanced search" facility can be provided.