PR https://github.com/thoughtbot/administrate/pull/1083 arose from a need to look up records by id. I was having a look at it, and realised that I'm not so sure it should be merged in its current state, as I'm starting to think that it looks a bit shoehorned, especially after the recent changes to the search code. I need more time to look into this, and I haven't had much of that lately.
While I was pondering this, I realised that it's already possible to search within number fields, by passing searchable: true
as an argument to the field. This PR tests and documents this.
Note that this number search is not perfect. Since it searches through numbers as if they were text, it will match substrings of longer numbers, and similarly unexpected results. It will do for most cases though, so it's worth capturing it in the docs.