Search a database with a string. Designed for end-users.
See https://q2search.herokuapp.com
This demo also allows is:unique
as a special operator.
See /web/backend/src/schema.ts and /web/backend/src/shared.ts for schema and search options, respectively.
This compares between MongoDB, LokiJS, NeDB, and native Array.filter
.
This is inspired from lunr.js search by fields, if specified, with some major differences.
AND
.OR
, use ?expression
.a
and A
means the same thing.+expression
means exactly match, and case-sensitive.-expression
means negation.:
, but also >
and <
is used to specify comparison. For example, +foo:bar
, count>1
.NULL
is a special keyword, meaning, not exists, undefined
, or null
.TRUE
and FALSE
are special keywords, meaning, true
and false
, respectively.NOW
.+1h
means next 1 hour. -1h
mean 1 hour ago.
y (year)
, M (month)
, w (week)
, d (day)
, h (hour)
, m (minute)
.is:duplicate
can be set.This project is used in https://github.com/patarapolw/learn-unicode