Search companies returns results for partial company names and company numbers:
When entering a partial company number, misleading results are sometimes returned. Example:
- Searching for 06759652 – the correct result is returned
- Searching for 0675965 – zero results are returned, which seems misleading
- Searching for 067596 – the result for 00067596 is returned, which is incomplete and therefore seems misleading
Another example:
- 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:
^.*<q-value>.*$
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.