NXP-10846: improve detection of documents to fulltext index