This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-10
Channels
- # beginners (151)
- # cider (41)
- # cljdoc (7)
- # cljs-dev (6)
- # clojure (92)
- # clojure-dev (5)
- # clojure-italy (26)
- # clojure-losangeles (1)
- # clojure-nl (10)
- # clojure-russia (3)
- # clojure-spec (23)
- # clojure-uk (82)
- # clojurescript (56)
- # clojutre (1)
- # core-async (3)
- # cursive (15)
- # datomic (26)
- # editors (3)
- # emacs (3)
- # events (2)
- # figwheel-main (192)
- # fulcro (66)
- # leiningen (12)
- # mount (1)
- # off-topic (131)
- # portkey (6)
- # re-frame (38)
- # reagent (10)
- # reitit (7)
- # ring-swagger (55)
- # shadow-cljs (21)
- # spacemacs (11)
- # tools-deps (48)
Hi, Can i use keywords with nested hierarchy for idents(Ex: :sample.some/state) and able to pull :sample ns datom :sample.some/state value, if both are written with same tx id.
Hi,
How I can fulltext filter based on multiple value. eg I want to to filter :person/name
is John
and Smith
, so John Smith
will match criteria and John West
wont?
(d/q '[:find ?c
:in $ ?filter
:where
;; [?c :changeset/date ?date]
[(fulltext $ :person/name ?filter) [[?c _ _ _]]]
]
db
["John*" "Smith*"])
Something like this doesnt work
and collection binding uses or
but I need and
Most efficient thing is to combine into one filter: http://lucene.apache.org/core/3_5_0/queryparsersyntax.html#Boolean%20operators
So datomic uses lucene underneath thanks!
@U09R86PA4 should I write something like
(fulltext % :person/name "John AND Smith")
?how datomic will understand this is lucene part?
or should I use
"\"John\" AND \"Smith\""
I think later is correct Thanks!
there are hints that Cloud will soon have an integration to ElasticSearch. It’s probably better to use that than fulltext in Datomic since it is not very good for search and has other limitations
with pull api can I make nested attributes flat?
with :as
maybe?
clear, thanks
I don’t understand what (d/pull db {:eid ident :selector [:db/ident]})
means
i.e. get entity indicated by ident
(whatever that value is, I guess you mean a :db/ident keyword like an attribute name) and give me a map like {:db/ident X}
with X being that entity's value for :db/ident
Relatedly, I’m trying to use pull
to get data for multiple entities. For example, I want all entities with :inv/name