first implementation part of mongodb full-text-search operator $text