searchTermNotEqualTo method
Implementation
QueryBuilder<DictionarySearchResult, DictionarySearchResult,
QAfterWhereClause> searchTermNotEqualTo(String searchTerm) {
return QueryBuilder.apply(this, (query) {
if (query.whereSort == Sort.asc) {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'searchTerm',
lower: [],
upper: [searchTerm],
includeUpper: false,
))
.addWhereClause(IndexWhereClause.between(
indexName: r'searchTerm',
lower: [searchTerm],
includeLower: false,
upper: [],
));
} else {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'searchTerm',
lower: [searchTerm],
includeLower: false,
upper: [],
))
.addWhereClause(IndexWhereClause.between(
indexName: r'searchTerm',
lower: [],
upper: [searchTerm],
includeUpper: false,
));
}
});
}