RemoveWordsIfNoResults enum

Strategy for removing words from the query when it doesn't return any results. This helps to avoid returning empty search results. - none. No words are removed when a query doesn't return results. - lastWords. Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed. - firstWords. Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed. - allOptional. Treat all words as optional. For more information, see Remove words to improve results.

Inheritance
Available extensions
Annotations
  • @JsonEnum(valueField: 'raw')

Values

none → const RemoveWordsIfNoResults
const RemoveWordsIfNoResults(r'none')
lastWords → const RemoveWordsIfNoResults
const RemoveWordsIfNoResults(r'lastWords')
firstWords → const RemoveWordsIfNoResults
const RemoveWordsIfNoResults(r'firstWords')
allOptional → const RemoveWordsIfNoResults
const RemoveWordsIfNoResults(r'allOptional')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
raw → dynamic
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
toJson() → dynamic
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic json) RemoveWordsIfNoResults

Constants

values → const List<RemoveWordsIfNoResults>
A constant List of the values in this enum, in order of their declaration.