Search companies returns results for partial company names and company numbers:
When entering a partial company number, misleading results are sometimes returned. Example:
1. Searching for 06759652 -- the correct result is returned
2. Searching for 0675965 -- zero results are returned, which seems misleading
3. Searching for 067596 -- the result for 00067596 is returned, which is incomplete and therefore seems misleading
1. Searching for BR0099 -- returns result for BR000099 only, but not for BR009910, which is incomplete and therefore seems misleading
Leading zeros seem to be handled nicely, but my intuitive expectation was that missing trailing values would be also, with a regex pattern like:
I am unsure whether the observed behavior is a bug or the way the API was designed. If it matches the design, then it might be helpful to add a parameter to the query that would allow results matching the company number to be excluded from the returned results entirely unless (perhaps) there were exactly 8 characters in the input.