Search Postgresql Archives

Re: Searching BLOB - Lucene setup & problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi John,
I have had a read through the lucene website
(http://lucene.apache.org/java/docs/index.html) and it sounds pretty
good to me.  I should be able to use this in conjuction with my JSP
pages.

This may sound quite dumb to anyone who develops in java, but I need a
little help setting up the demo on my windowsXP machine.  I have
installed JDY 1.5.0_07, i have installed tomcat and can confirm that is
is all up and running correctly, as I have already written a few simple
JSP pages.

I have downloaded the lucene package, extracted the package to my C:\
and followed the steps of the demo page:
http://lucene.apache.org/java/docs/demo.html

But, when i try to run  "java org.apache.lucene.demo.IndexFiles
c:\lucene-2.0.0\src" from the cmd prompt, I get the following error:

"Exception in thread 'main' java.lang.NoClassDefFoundError:
org/apache/lucene/analysis/Analyser"

I am not sure why this is coming up.  I have followed the instructions
on the demo page on the web.

The only thing i can think of is I may have my "CLASSPATH" incorrect.
Can someone help me out with a basic desription if what the classpath
is and where I should point the classpath environment variable to?

Once I have that correct, i think that I may be able to run the demo.

thanks for any help you can provide.

James

"John Sidney-Woollett" wrote:
> Save yourself some effort and use Lucene to index a directory of your 300
> word documents. I'm pretty sure that Lucene includes an extension to read
> Word documents, and you can use PDFBox to read/write PDF files. Marrying
> the searching and displaying of results to your web application should be
> trivial since you're wanting to use java anyway. Lucene has full character
> set support and is blindingly fast
>
> If you're looking for a solution to this problem using Postgres, then
> you'll be creating a ton extra work for yourself. If you're wanting to
> learn more about postgres, then maybe it'll be worthwhile.
> 
> John
>



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux