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 newFieldSearchPathwith the name of the alternate analyzer specified.default StringtoValue()Returns the name of the field represented by this path.Methods inherited from interface org.bson.conversions.Bson
toBsonDocument, toBsonDocumentMethods inherited from interface com.mongodb.client.model.search.SearchPath
toBsonValue
-
Method Details
-
multi
Creates a newFieldSearchPathwith 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
ofmethods, e.g.,SearchScore.of(Bson). Depending on the syntax of the document being constructed, it may be required to use the methodSearchPath.toBsonValue()instead.
-