A grammar and parser for Google-style searches on unstructured or semistructured data
bower install purescript-search
Module documentation is published on Pursuit.
-
Search for everything containing the text "foo":
foo +foo
-
Search for everything not containing the text "foo":
-foo
-
Search for anything which is tagged with the
foo
tag:#foo
-
Search for anything:
*
-
Search for anything containing text that starts with "uni":
uni*
-
Search for everything containing a
foo
field whose value is greater than2
:foo:>2
-
Search for everything containing a
foo
field whose value falls inside the range 0..2:foo:0..2
-
Search for everything that does not contain a
foo
field whose value falls inside the range 0..2:-foo:0..2
-
Search for everything that contains a
foo
field which contains abar
field which contains the textbaz
:foo:bar:baz
-
Search for everything that contains a
baz
field matching the SQLLIKE
pattern_foo%bar
:baz:~"_foo%bar"
-
Search for everything that contains anything matching the glob pattern
?foo*bar
:~?foo*bar
-
Search for everything that contains anything greater than
2
:>2
-
Search for anything containing a
foo
that starts with the text "uni":foo:uni*
-
Search for anything containing a metadata attribute called
path
that contains/foo/bar
:@path:/foo/bar