Typically the standard for trademark cases is whether or not customers will confuse the two competing names/products/brands.
It's quite possible that because both companies target developers, architects, etc who're more than able to distinguish between the two companies' offerings... that Elastic's lawsuits didn't go anywhere