Package com.mongodb.client.model.search
Interface AutocompleteSearchOperator
- All Superinterfaces:
Bson
,SearchOperator
-
Field Summary
Fields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newAutocompleteSearchOperator
that does not require tokens to appear in the same order as they are specified.fuzzy()
Creates a newAutocompleteSearchOperator
that uses fuzzy search.fuzzy
(FuzzySearchOptions options) Creates a newAutocompleteSearchOperator
that uses fuzzy search.score
(SearchScore modifier) Creates a newSearchOperator
with the scoring modifier specified.Creates a newAutocompleteSearchOperator
that requires tokens to appear in the same order as they are specified.Methods inherited from interface org.bson.conversions.Bson
toBsonDocument, toBsonDocument
-
Method Details
-
score
Description copied from interface:SearchOperator
Creates a newSearchOperator
with the scoring modifier specified.- Specified by:
score
in interfaceSearchOperator
- Parameters:
modifier
- The scoring modifier.- Returns:
- A new
SearchOperator
.
-
fuzzy
AutocompleteSearchOperator fuzzy()Creates a newAutocompleteSearchOperator
that uses fuzzy search.- Returns:
- A new
AutocompleteSearchOperator
.
-
fuzzy
Creates a newAutocompleteSearchOperator
that uses fuzzy search.- Parameters:
options
- The fuzzy search options. SpecifyingFuzzySearchOptions.fuzzySearchOptions()
is equivalent to callingfuzzy()
.- Returns:
- A new
AutocompleteSearchOperator
.
-
anyTokenOrder
AutocompleteSearchOperator anyTokenOrder()Creates a newAutocompleteSearchOperator
that does not require tokens to appear in the same order as they are specified.- Returns:
- A new
AutocompleteSearchOperator
. - See Also:
-
sequentialTokenOrder
AutocompleteSearchOperator sequentialTokenOrder()Creates a newAutocompleteSearchOperator
that requires tokens to appear in the same order as they are specified.- Returns:
- A new
AutocompleteSearchOperator
. - See Also:
-