public static Bson text ( final String search , final TextSearchOptions textSearchOptions ) { notNull ( "search" , search ) ; notNull ( "textSearchOptions" , textSearchOptions ) ; return new TextFilter ( search , textSearchOptions ) ; }
Creates a filter that matches all documents matching the given the search term with the given text search options .