FreshnessOptions class

Indicates which freshness property to use when adjusting search ranking for an item.

Fresher, more recent dates indicate higher quality. Use the freshness option property that best works with your data. For fileshare documents, last modified time is most relevant. For calendar event data, the time when the event occurs is a more relevant freshness indicator. In this way, calendar events that occur closer to the time of the search query are considered higher quality and ranked accordingly.

Constructors

FreshnessOptions({String? freshnessDuration, String? freshnessProperty})
FreshnessOptions.fromJson(Map json_)

Properties

freshnessDuration String?
The duration after which an object should be considered stale.
getter/setter pair
freshnessProperty String?
This property indicates the freshness level of the object in the index.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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