문서 보기역링크PDF로 내보내기맨 위로 이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. # rules <code clojure> (xt/query-list xtdb '{:find [(pull b [*])] :in [[word ...]] :where [[b :label :book/book] (or (title-include? b word) (author-name-include? b word))] :rules [[(title-include? book word) [b :title title] (or [(str/includes? title word)] [(str/includes? (str/lower-case title) word)])] [(author-name-include? book word) [ba :label :book/book-author] [ba :author-id a] [ba :book-id b] [a :name name] (or [(str/includes? name word)] [(str/includes? (str/lower-case name) word)])]]} words) </code> open/xtdb-rules.txt 마지막으로 수정됨: 2023/04/30 11:56저자 MORO