Schema class

Inheritance

Constructors

Schema(String name, Set<Field> fields, {Field? defaultSortingField, int? documentCount, bool? enableNestedFields})
Schema.fromMap(Map<String, dynamic> map)
factory

Properties

defaultSortingField Field?
A field in fields which will determine the order in which the search results are ranked when a sort_by clause is not provided during searching.
final
documentCount int?
Number of documents currently in the collection name.
final
enableNestedFields bool?
Boolean to enable nested fields on the schema, only available for typesense 0.24 or more
final
fields Set<Field>
fields used for querying, filtering and faceting.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
name of the collection.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited