Semantics3 interview question

How does text indexing work on MongoDB?