Package com.mongodb.client.model.search
Interface FieldSearchPath
- All Superinterfaces:
Bson
,SearchPath
- Since:
- 4.7
- See Also:
-
Field Summary
Fields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newFieldSearchPath
with the name of the alternate analyzer specified.default String
toValue()
Returns the name of the field represented by this path.Methods inherited from interface org.bson.conversions.Bson
toBsonDocument, toBsonDocument
Methods inherited from interface com.mongodb.client.model.search.SearchPath
toBsonValue
-
Method Details
-
multi
Creates a newFieldSearchPath
with the name of the alternate analyzer specified.- Parameters:
analyzerName
- The name of the alternate analyzer.- Returns:
- A new
FieldSearchPath
.
-
toValue
Returns the name of the field represented by this path.This method may be useful when using the
of
methods, e.g.,SearchScore.of(Bson)
. Depending on the syntax of the document being constructed, it may be required to use the methodSearchPath.toBsonValue()
instead.
-