You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 7, 2025. It is now read-only.
{`title:"The Right Way" AND text:go!!`, `("title" ILIKE '%The Right Way%' AND "text" ILIKE '%go!!%')`},
21
-
{`title:Do it right AND right`, `((("title" ILIKE '%Do%' OR ("title" ILIKE '%it%' OR "text" ILIKE '%it%')) OR ("title" ILIKE '%right%' OR "text" ILIKE '%right%')) AND ("title" ILIKE '%right%' OR "text" ILIKE '%right%'))`},
22
-
{`roam~`, `("title" ILIKE '%roam%' OR "text" ILIKE '%roam%')`},
23
-
{`roam~0.8`, `("title" ILIKE '%roam%' OR "text" ILIKE '%roam%')`},
24
-
{`jakarta^4 apache`, `(("title" ILIKE '%jakarta%' OR "text" ILIKE '%jakarta%') OR ("title" ILIKE '%apache%' OR "text" ILIKE '%apache%'))`},
{`title:"The Right Way" AND text:go!!`, `("title" __quesma_match '%The Right Way%' AND "text" __quesma_match '%go!!%')`},
21
+
{`title:Do it right AND right`, `((("title" __quesma_match '%Do%' OR ("title" __quesma_match '%it%' OR "text" __quesma_match '%it%')) OR ("title" __quesma_match '%right%' OR "text" __quesma_match '%right%')) AND ("title" __quesma_match '%right%' OR "text" __quesma_match '%right%'))`},
22
+
{`roam~`, `("title" __quesma_match '%roam%' OR "text" __quesma_match '%roam%')`},
23
+
{`roam~0.8`, `("title" __quesma_match '%roam%' OR "text" __quesma_match '%roam%')`},
24
+
{`jakarta^4 apache`, `(("title" __quesma_match '%jakarta%' OR "text" __quesma_match '%jakarta%') OR ("title" __quesma_match '%apache%' OR "text" __quesma_match '%apache%'))`},
{`"jakarta apache" NOT "Apache Lucene"`, `(("title" ILIKE '%jakarta apache%' OR "text" ILIKE '%jakarta apache%') AND NOT (("title" ILIKE '%Apache Lucene%' OR "text" ILIKE '%Apache Lucene%')))`},
48
-
{`(jakarta OR apache) AND website`, `(((("title" ILIKE '%jakarta%' OR "text" ILIKE '%jakarta%')) OR ("title" ILIKE '%apache%' OR "text" ILIKE '%apache%')) AND ("title" ILIKE '%website%' OR "text" ILIKE '%website%'))`},
{`status:(active OR pending) title:(full text search)^2`, `(("status" ILIKE '%active%' OR "status" ILIKE '%pending%') OR (("title" ILIKE '%full%' OR "title" ILIKE '%text%') OR "title" ILIKE '%search%'))`},
51
-
{`status:(active OR NOT (pending AND in-progress)) title:(full text search)^2`, `(("status" ILIKE '%active%' OR NOT (("status" ILIKE '%pending%' AND "status" ILIKE '%in-progress%'))) OR (("title" ILIKE '%full%' OR "title" ILIKE '%text%') OR "title" ILIKE '%search%'))`},
52
-
{`status:(NOT active OR NOT (pending AND in-progress)) title:(full text search)^2`, `((NOT ("status" ILIKE '%active%') OR NOT (("status" ILIKE '%pending%' AND "status" ILIKE '%in-progress%'))) OR (("title" ILIKE '%full%' OR "title" ILIKE '%text%') OR "title" ILIKE '%search%'))`},
53
-
{`status:(active OR (pending AND in-progress)) title:(full text search)^2`, `(("status" ILIKE '%active%' OR ("status" ILIKE '%pending%' AND "status" ILIKE '%in-progress%')) OR (("title" ILIKE '%full%' OR "title" ILIKE '%text%') OR "title" ILIKE '%search%'))`},
54
-
{`status:((a OR (b AND c)) AND d)`, `(("status" ILIKE '%a%' OR ("status" ILIKE '%b%' AND "status" ILIKE '%c%')) AND "status" ILIKE '%d%')`},
55
-
{`title:(return [Aida TO Carmen])`, `("title" ILIKE '%return%' OR ("title" >= 'Aida' AND "title" <= 'Carmen'))`},
56
-
{`host.name:(NOT active OR NOT (pending OR in-progress)) (full text search)^2`, `((((NOT ("host.name" ILIKE '%active%') OR NOT (("host.name" ILIKE '%pending%' OR "host.name" ILIKE '%in-progress%'))) OR (("title" ILIKE '%full%' OR "text" ILIKE '%full%'))) OR ("title" ILIKE '%text%' OR "text" ILIKE '%text%')) OR ("title" ILIKE '%search%' OR "text" ILIKE '%search%'))`},
57
-
{`host.name:(active AND NOT (pending OR in-progress)) hermes nemesis^2`, `((("host.name" ILIKE '%active%' AND NOT (("host.name" ILIKE '%pending%' OR "host.name" ILIKE '%in-progress%'))) OR ("title" ILIKE '%hermes%' OR "text" ILIKE '%hermes%')) OR ("title" ILIKE '%nemesis%' OR "text" ILIKE '%nemesis%'))`},
45
+
{`"jakarta apache" AND "Apache Lucene"`, `(("title" __quesma_match '%jakarta apache%' OR "text" __quesma_match '%jakarta apache%') AND ("title" __quesma_match '%Apache Lucene%' OR "text" __quesma_match '%Apache Lucene%'))`},
{`"jakarta apache" NOT "Apache Lucene"`, `(("title" __quesma_match '%jakarta apache%' OR "text" __quesma_match '%jakarta apache%') AND NOT (("title" __quesma_match '%Apache Lucene%' OR "text" __quesma_match '%Apache Lucene%')))`},
48
+
{`(jakarta OR apache) AND website`, `(((("title" __quesma_match '%jakarta%' OR "text" __quesma_match '%jakarta%')) OR ("title" __quesma_match '%apache%' OR "text" __quesma_match '%apache%')) AND ("title" __quesma_match '%website%' OR "text" __quesma_match '%website%'))`},
{`status:(active OR pending) title:(full text search)^2`, `(("status" __quesma_match '%active%' OR "status" __quesma_match '%pending%') OR (("title" __quesma_match '%full%' OR "title" __quesma_match '%text%') OR "title" __quesma_match '%search%'))`},
51
+
{`status:(active OR NOT (pending AND in-progress)) title:(full text search)^2`, `(("status" __quesma_match '%active%' OR NOT (("status" __quesma_match '%pending%' AND "status" __quesma_match '%in-progress%'))) OR (("title" __quesma_match '%full%' OR "title" __quesma_match '%text%') OR "title" __quesma_match '%search%'))`},
52
+
{`status:(NOT active OR NOT (pending AND in-progress)) title:(full text search)^2`, `((NOT ("status" __quesma_match '%active%') OR NOT (("status" __quesma_match '%pending%' AND "status" __quesma_match '%in-progress%'))) OR (("title" __quesma_match '%full%' OR "title" __quesma_match '%text%') OR "title" __quesma_match '%search%'))`},
53
+
{`status:(active OR (pending AND in-progress)) title:(full text search)^2`, `(("status" __quesma_match '%active%' OR ("status" __quesma_match '%pending%' AND "status" __quesma_match '%in-progress%')) OR (("title" __quesma_match '%full%' OR "title" __quesma_match '%text%') OR "title" __quesma_match '%search%'))`},
54
+
{`status:((a OR (b AND c)) AND d)`, `(("status" __quesma_match '%a%' OR ("status" __quesma_match '%b%' AND "status" __quesma_match '%c%')) AND "status" __quesma_match '%d%')`},
55
+
{`title:(return [Aida TO Carmen])`, `("title" __quesma_match '%return%' OR ("title" >= 'Aida' AND "title" <= 'Carmen'))`},
56
+
{`host.name:(NOT active OR NOT (pending OR in-progress)) (full text search)^2`, `((((NOT ("host.name" __quesma_match '%active%') OR NOT (("host.name" __quesma_match '%pending%' OR "host.name" __quesma_match '%in-progress%'))) OR (("title" __quesma_match '%full%' OR "text" __quesma_match '%full%'))) OR ("title" __quesma_match '%text%' OR "text" __quesma_match '%text%')) OR ("title" __quesma_match '%search%' OR "text" __quesma_match '%search%'))`},
57
+
{`host.name:(active AND NOT (pending OR in-progress)) hermes nemesis^2`, `((("host.name" __quesma_match '%active%' AND NOT (("host.name" __quesma_match '%pending%' OR "host.name" __quesma_match '%in-progress%'))) OR ("title" __quesma_match '%hermes%' OR "text" __quesma_match '%hermes%')) OR ("title" __quesma_match '%nemesis%' OR "text" __quesma_match '%nemesis%'))`},
58
58
59
59
// special characters
60
-
{`dajhd \(%&RY#WFDG`, `(("title" ILIKE '%dajhd%' OR "text" ILIKE '%dajhd%') OR ("title" ILIKE '%(\%&RY#WFDG%' OR "text" ILIKE '%(\%&RY#WFDG%'))`},
61
-
{`x:aaa'bbb`, `"x" ILIKE '%aaa\'bbb%'`},
62
-
{`x:aaa\bbb`, `"x" ILIKE '%aaa\\bbb%'`},
63
-
{`x:aaa*bbb`, `"x" ILIKE '%aaa%bbb%'`},
64
-
{`x:aaa_bbb`, `"x" ILIKE '%aaa\_bbb%'`},
65
-
{`x:aaa%bbb`, `"x" ILIKE '%aaa\%bbb%'`},
66
-
{`x:aaa%\*_bbb`, `"x" ILIKE '%aaa\%*\_bbb%'`},
60
+
{`dajhd \(%&RY#WFDG`, `(("title" __quesma_match '%dajhd%' OR "text" __quesma_match '%dajhd%') OR ("title" __quesma_match '%(\%&RY#WFDG%' OR "text" __quesma_match '%(\%&RY#WFDG%'))`},
{` 2df$ ! `, `(("title" ILIKE '%2df$%' OR "text" ILIKE '%2df$%') AND NOT (false))`}, // TODO: this should probably just be "false"
94
+
{` 2df$ ! `, `(("title" __quesma_match '%2df$%' OR "text" __quesma_match '%2df$%') AND NOT (false))`}, // TODO: this should probably just be "false"
95
95
{`title:`, `false`},
96
-
{`title: abc`, `"title" ILIKE '%abc%'`},
97
-
{`title[`, `("title" ILIKE '%title[%' OR "text" ILIKE '%title[%')`},
98
-
{`title[]`, `("title" ILIKE '%title[]%' OR "text" ILIKE '%title[]%')`},
99
-
{`title[ TO ]`, `((("title" ILIKE '%title[%' OR "text" ILIKE '%title[%') OR ("title" ILIKE '%TO%' OR "text" ILIKE '%TO%')) OR ("title" ILIKE '%]%' OR "text" ILIKE '%]%'))`},
96
+
{`title: abc`, `"title" __quesma_match '%abc%'`},
97
+
{`title[`, `("title" __quesma_match '%title[%' OR "text" __quesma_match '%title[%')`},
98
+
{`title[]`, `("title" __quesma_match '%title[]%' OR "text" __quesma_match '%title[]%')`},
99
+
{`title[ TO ]`, `((("title" __quesma_match '%title[%' OR "text" __quesma_match '%title[%') OR ("title" __quesma_match '%TO%' OR "text" __quesma_match '%TO%')) OR ("title" __quesma_match '%]%' OR "text" __quesma_match '%]%'))`},
100
100
{`title:[ TO 2]`, `("title" >= '' AND "title" <= '2')`},
101
-
{` title `, `("title" ILIKE '%title%' OR "text" ILIKE '%title%')`},
102
-
{` title : (+a -b c)`, `(("title" ILIKE '%+a%' OR "title" ILIKE '%-b%') OR "title" ILIKE '%c%')`}, // we don't support '+', '-' operators, but in that case the answer seems good enough + nothing crashes
101
+
{` title `, `("title" __quesma_match '%title%' OR "text" __quesma_match '%title%')`},
102
+
{` title : (+a -b c)`, `(("title" __quesma_match '%+a%' OR "title" __quesma_match '%-b%') OR "title" __quesma_match '%c%')`}, // we don't support '+', '-' operators, but in that case the answer seems good enough + nothing crashes
103
103
{`title:()`, `false`},
104
-
{`() a`, `((false) OR ("title" ILIKE '%a%' OR "text" ILIKE '%a%'))`}, // a bit weird, but '(false)' is OK as I think nothing should match '()'
104
+
{`() a`, `((false) OR ("title" __quesma_match '%a%' OR "text" __quesma_match '%a%'))`}, // a bit weird, but '(false)' is OK as I think nothing should match '()'
{query: `title:"The Right Way" AND text:go!!`, mapping: map[string]string{}, want: `("title" ILIKE '%The Right Way%' AND "text" ILIKE '%go!!%')`},
130
+
{query: `title:"The Right Way" AND text:go!!`, mapping: map[string]string{}, want: `("title" __quesma_match '%The Right Way%' AND "text" __quesma_match '%go!!%')`},
0 commit comments