简体   繁体   English

如何启动CouchDB Lucene并将其与bigcouch集成

[英]how to start couchdb lucene and integrate it with bigcouch

i want to using couchdb-lucene as full text search, but i can't run it... 我想使用couchdb-lucene作为全文搜索,但是我无法运行...

i got this error 我得到这个错误

ls: cannot access lib/*.jar: No such file or directory Exception in thread "main" java.lang.NoClassDefFoundError: com/github/rnewson/couchdb/lucene/Main Caused by: java.lang.ClassNotFoundException: com.github.rnewson.couchdb.lucene.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: com.github.rnewson.couchdb.lucene.Main. ls:无法访问lib / *。jar:线程“ main”中没有此类文件或目录异常java.lang.NoClassDefFoundError:com / github / rnewson / couchdb / lucene / Main原因:java.lang.ClassNotFoundException:com.github .rnewson.couchdb.lucene.Main在java.net.URLClassLoader $ 1.run(URLClassLoader.java:217)在java.security.AccessController.doPrivileged(本机方法)在java.net.URLClassLoader.findClass(URLClassLoader.java:205 )在sun.misc.Launcher $ AppClassLoader.loadClass(Launcher.java:294)在java.lang.ClassLoader.loadClass(ClassLoader.java:266)在java.lang.ClassLoader.loadClass(ClassLoader.java:321)找到主类:com.github.rnewson.couchdb.lucene.Main。 Program will exit. 程序将会退出。

and how to integrate it with bigcouch..? 以及如何将其与bigcouch集成。

i can't start it so i can't try to integrate it with bigcouch... 我无法启动它,所以我无法尝试将其与bigcouch集成...

I built the Lucene from the source. 我从源头构建了Lucene。 Did this on Windows 7, probably works on other OSes aswell. 在Windows 7上执行此操作可能也可以在其他OS上使用。 On windows Install Maven and add Mavens bin folder path to environment variable PATH (on Linux it should be installed by aptitude). 在Windows上,安装Maven并将Mavens bin文件夹路径添加到环境变量PATH(在Linux上应通过aptitude安装)。 You build Lucene in command prompt (open the prompt after you install maven and add the bin path) and go to the folder where the Lucene src is. 您在命令提示符下构建Lucene(在安装maven并添加bin路径后打开提示符),然后转到Lucene src所在的文件夹。 On the same folder you can see a file named 'pom.xml'. 在同一文件夹上,您可以看到一个名为“ pom.xml”的文件。 Execute command 'mvn clean install'. 执行命令“ mvn clean install”。 It takes a while to build and it loads a lot of dependencies from the internet. 构建需要花费一些时间,并且从Internet加载了很多依赖项。 Finally uou get a dist.zip in a target folder (folder created when building). 最后,您会在目标文件夹(构建时创建的文件夹)中获得dist.zip。 Take the zip, unpack it and take the libraries (jar files in the builds 'lib' folder). 提取zip,解压缩并提取库(builds'lib'文件夹中的jar文件)。 Copy them to to Lucenes 'lib' folder. 将它们复制到Lucenes的“ lib”文件夹。 Lucene should work now. Lucene现在应该工作。

Did you build the zip file, unpack it, and run the startup script from the bin/ folder? 您是否构建了zip文件,将其解压缩并从bin /文件夹运行启动脚本?

https://github.com/rnewson/couchdb-lucene/blob/master/README.md https://github.com/rnewson/couchdb-lucene/blob/master/README.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM