Modify Cursor Text Options Code

- Change sort_query options to be more concise.
- Add missing brackets for SearchOptions.
33294-query-text-search
Change Index Cursor Type

Modified index_cursor_type function look for <<"$text">>
recursively and moved it into mango_selector.
33294-query-text-search