The test ITDocumentRelationTest.testSimpleRelationBetweenTwoDocuments fails on MongoDB with:
What happens is that at the step when we typed "Fil" then it does a search of ecm:fulltext LIKE 'fil%' (from page provider default_document_suggestion) which is translated in MongoDB as a query on
However MongoDB text search doesn't understand prefix search, it only matches exact words (modulo stemming).
So this search returns 0 result, but then on typing the next character we have "File" and this matches the fulltext. So the number of results increase while we type, which the test doesn't expect.
As there is no way to do prefix-search on the fulltext for MongoDB, the simplest fix is to pass this page provider (default_document_suggestion, not to be confused with DEFAULT_DOCUMENT_SUGGESTION used by the suggestbox addon) to Elasticsearch.