   (let [ename (partial actor-or-movie-name db)
         annotate-node (fn [node]
                         (let [ent (d/entity db node)]
-                          {:type (if (:person/name ent) "actor" "movie")
+                          {:type (if (:cnet/cnet ent) "actor" "movie")
                            :year (:movie/year ent)
                            :name (ename ent)
                            :entity ent}))]

  [db query]
  (if (str/blank? query)
    #{}
    (if-let [eid (d/entid db [:person/name query])]
      [{:name query :actor-id eid}]
      (mapv #(zipmap [:actor-id :name] %)
            (q '[:find ?e ?name
                 :in $ ?search
                 :where [(fulltext $ :person/name ?search) [[?e ?name]]]]
               db (format-query query))))))

(defn movie-actors

  name is the actor's name"
  [db eid]
  (-> (d/entity db (e eid))
      :cnet/start))

(defn actor-search
  "Returns set with exact match, if found. Otherwise query will
