I would check the Lucene indexing rules. If I'm not mistaken, terms such as "a", "the", "is", "I", etc. are not written to the index. Therefore, that's why "b" shows up and "a" does not. I would try changing "a" to "aa" and see if the query works.
You need to use for spaces and contents a name value with at least three characters. This is a requirement of Lucene, otherwise to generate the index you need to use ISO9075 encoding.
This behaviour is needed for the root contents, in the company home space. I have verified that for the subspaces, it works, but you need to use ISO9075 encoding.