This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-15
Channels
- # announcements (5)
- # babashka (56)
- # beginners (24)
- # biff (15)
- # calva (7)
- # clj-kondo (12)
- # cljsrn (8)
- # clojure (68)
- # clojure-denmark (1)
- # clojure-europe (55)
- # clojure-norway (4)
- # clojure-spec (9)
- # clojure-uk (2)
- # clojurescript (8)
- # cursive (11)
- # data-science (7)
- # datahike (1)
- # datomic (66)
- # emacs (12)
- # etaoin (3)
- # fulcro (10)
- # graphql (3)
- # hyperfiddle (97)
- # jobs (1)
- # kaocha (8)
- # lsp (3)
- # malli (15)
- # meander (1)
- # off-topic (3)
- # overtone (4)
- # polylith (7)
- # rdf (25)
- # re-frame (4)
- # reagent (14)
- # remote-jobs (1)
- # shadow-cljs (126)
- # sql (30)
- # vscode (3)
- # xtdb (8)
Is there a bug in the lucene plugin? I can’t even get a minimal example of it working. Following the instructions here:
https://docs.xtdb.com/extensions/1.23.0/full-text-search/
SOLVED
This is the exception:
1. Caused by java.io.FileNotFoundException
Could not locate xtdb__init.class, xtdb.clj or xtdb.cljc on classpath.
RT.java: 466 clojure.lang.RT/load
RT.java: 428 clojure.lang.RT/load
core.clj: 6126 clojure.core/load/fn
core.clj: 6125 clojure.core/load
core.clj: 6109 clojure.core/load
RestFn.java: 408 clojure.lang.RestFn/invoke
core.clj: 5908 clojure.core/load-one
core.clj: 5903 clojure.core/load-one
core.clj: 5948 clojure.core/load-lib/fn
core.clj: 5947 clojure.core/load-lib
core.clj: 5928 clojure.core/load-lib
RestFn.java: 142 clojure.lang.RestFn/applyTo
core.clj: 667 clojure.core/apply
core.clj: 5985 clojure.core/load-libs
core.clj: 5969 clojure.core/load-libs
RestFn.java: 137 clojure.lang.RestFn/applyTo
core.clj: 667 clojure.core/apply
core.clj: 6007 clojure.core/require
core.clj: 6007 clojure.core/require
RestFn.java: 137 clojure.lang.RestFn/applyTo
core.clj: 665 clojure.core/apply
core.clj: 6079 clojure.core/serialized-require
core.clj: 6088 clojure.core/requiring-resolve
core.clj: 6082 clojure.core/requiring-resolve
system.clj: 107 xtdb.system.ModuleRef/fn
system.clj: 106 xtdb.system.ModuleRef/prepare_dep
system.clj: 134 xtdb.system/opts-reducer/f
PersistentVector.java: 343 clojure.lang.PersistentVector/reduce
core.clj: 6827 clojure.core/reduce
core.clj: 6810 clojure.core/reduce
system.clj: 156 xtdb.system/prep-system
system.clj: 141 xtdb.system/prep-system
system.clj: 142 xtdb.system/prep-system
system.clj: 141 xtdb.system/prep-system
api.clj: 297 xtdb.api/start-node
api.clj: 284 xtdb.api/start-node
deps.edn:
com.xtdb/xtdb-core {:mvn/version "1.23.0"}
com.xtdb/xtdb-jdbc {:mvn/version "1.23.0"}
com.xtdb/xtdb-rocksdb {:mvn/version "1.23.0"}
com.xtdb/xtdb-http-server {:mvn/version "1.23.0"}
com.xtdb/xtdb-lucene {:mvn/version "1.23.0"}
And the offending code:
(xtdb/start-node
{:xtdb.jdbc/connection-pool {:dialect {:xtdb/module 'xtdb.jdbc.psql/->dialect}
:db-spec (:db (config))}
:xtdb/tx-log {:xtdb/module 'xtdb.jdbc/->tx-log
:connection-pool :xtdb.jdbc/connection-pool}
:xtdb/document-store {:xtdb/module 'xtdb.jdbc/->document-store
:connection-pool :xtdb.jdbc/connection-pool}
:xtdb/index-store {:kv-store {:xtdb/module 'xtdb.rocksdb/->kv-store
:db-dir (io/file "/tmp/rocksdb/db")}}
:xtdb/lucene-store {:db-dir "lucene-dir"}
})
If I comment :xtdb/lucene-store {:db-dir "lucene-dir"}
it no longer throws. I’ve also tried omitting :db-dir