Method UseConfiguredSerializers
UseConfiguredSerializers<TDocument>(SearchDefinition<TDocument>, bool)
Determines whether to use the configured serializers for the specified SearchDefinition<TDocument>. When set to true (the default value), the configured serializers will be used to serialize the values of certain Atlas Search operators, such as "Equals", "In" and "Range". If set to false, then a default conversion will be used.
public static SearchDefinition<TDocument> UseConfiguredSerializers<TDocument>(this SearchDefinition<TDocument> searchDefinition, bool useConfiguredSerializers)
Parameters
searchDefinition
SearchDefinition<TDocument>The search definition instance.
useConfiguredSerializers
boolWhether to use the configured serializers or not.
Returns
- SearchDefinition<TDocument>
The same SearchDefinition<TDocument> instance with default serialization enabled.
Type Parameters
TDocument
The type of the document.