Example query hacking.

This commit is contained in:
Richard Newman 2016-08-04 18:55:06 -07:00
parent 753fc859b1
commit 696ae59570
2 changed files with 5 additions and 3 deletions

View file

@ -96,6 +96,8 @@
[?e :x ?v]
#_[(> ?v 1000)]] {}))))))
(dq/parse '[:find ?entity ?name ?tx ?score
(dq/parse '[:find ?entity ?tx ?score
:in $ ?search
:where [(fulltext $ :artist/name ?search) [[?entity ?name ?tx ?score]]]])
:where [(foobar $ :artist/name ?search) [[?entity _ ?tx ?score]]]])
(honeysql.core/format {:select [:?foo] :from [:foo] :where [:match :foo.x "Bar"]})

View file

@ -134,7 +134,7 @@
(datomish.query/parse
'[:find ?page :in $ ?latest :where
[?page :page/url "http://example.com/"]
[?page :page/title ?title]
[(fulltext $ :page/title "Some title") [[?page ?title _ _]]]
(or
[?entity :page/likes ?page]
[?entity :page/loves ?page])