David Moo

Greenhorn
+ Follow
since Sep 10, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by David Moo

Thank you so much...
After I run the command, I got the index folder; What's the next step to lunch the search webpage.
In my IE browser, what the URL I should type. Thanks again.


/opt/hpws/tomcat/webapps/lucene/index]ls -l
total 256
-rw-r--r-- 1 root sys 1762 Sep 13 08:41 _0.fdt
-rw-r--r-- 1 root sys 132 Sep 13 08:41 _0.fdx
-rw-r--r-- 1 root sys 32 Sep 13 08:41 _0.fnm
-rw-r--r-- 1 root sys 10592 Sep 13 08:41 _0.frq
-rw-r--r-- 1 root sys 20 Sep 13 08:41 _0.nrm
-rw-r--r-- 1 root sys 32168 Sep 13 08:41 _0.prx
-rw-r--r-- 1 root sys 313 Sep 13 08:41 _0.tii
-rw-r--r-- 1 root sys 18627 Sep 13 08:41 _0.tis
-rw-r--r-- 1 root sys 20 Sep 13 08:41 segments.gen
-rw-r--r-- 1 root sys 244 Sep 13 08:41 segments_1


5 years ago
I have both jar files under the classpath lucene-demo-3.6.1.jar & lucene-core-3.6.1.jar
But Still got error.

Can you help? Thanks


[root@devserver:/opt/hpws/tomcat/webapps/lucene]ls -l
total 23488
-rwxr--r-- 1 root sys 280171 Jul 17 12:21 CHANGES.txt
-rwxr--r-- 1 root sys 1616 Jul 17 09:41 JRE_VERSION_MIGRATION.txt
-rwxr--r-- 1 root sys 17778 Jul 17 09:41 LICENSE.txt
-rwxr--r-- 1 root sys 8780 Jul 17 09:41 NOTICE.txt
-rwxr--r-- 1 root sys 1383 Jul 17 09:41 README.txt
drwxr-xr-x 20 root sys 8192 Sep 10 14:33 contrib
drwxr-xr-x 7 root sys 8192 Sep 10 14:36 docs
-rwxr--r-- 1 root sys 3648793 Jul 17 12:37 lucene-core-3.6.1-javadoc.jar
-rwxr--r-- 1 root sys 1537988 Jul 17 12:36 lucene-core-3.6.1.jar
-rwxr--r-- 1 root sys 44168 Sep 12 11:33 lucene-demo-3.6.1-javadoc.jar
-rwxr--r-- 1 root sys 16854 Sep 12 11:32 lucene-demo-3.6.1.jar
-rwxr--r-- 1 root sys 431334 Jul 17 12:38 lucene-test-framework-3.6.1-javadoc.jar
-rwxr--r-- 1 root sys 5955900 Jul 17 12:36 lucene-test-framework-3.6.1.jar
drwxr-xr-x 3 root sys 96 Sep 10 14:32 test-framework
[root@devserver:/opt/hpws/tomcat/webapps/lucene]java org.apache.lucene.demo.IndexFiles -docs /opt/hpws/tomcat/webapps/lucene/src
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/demo/IndexFiles
5 years ago
I logon the HP-UNIX 11i v3 as root

1) I download the lucene 3.6.1 and extact to folder : /opt/hpws/tomcat/webapps/lucene
2) I set the CLASSPATH
export CLASSPATH=/opt/hpws/tomcat/webapps/lucene

Then I run the following command
java org.apache.lucene.demo.IndexFiles -docs /opt/hpws/tomcat/webapps/lucene/contrib/demo/src

I got error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/demo/IndexFiles

PLEASE HLEP for This issue.

Thanks a lot
5 years ago
I copied all the locene file to the JAVA class path and created a test.jsp, But I got error. Any syntax problem?
Can you help to fix this issue?
Thanks a lots.

######################################
An error occurred at line: 10 in the jsp file: /scmweb_welcome.jsp
Syntax error on token ".", = expected
7: <body leftmargin="10" BGCOLOR="#FFFFFF">
8:
9: <%
10: java org.apache.lucene.demo.IndexFiles -docs /apdb/WEB-INF/lib/src;
11:
12: java org.apache.lucene.demo.SearchFiles;
13: %>
##################

------ test.jsp ---------------------------------


<html>
<head>
<title>Welcome</title>
</head>
<body leftmargin="10" BGCOLOR="#FFFFFF">

<%
java org.apache.lucene.demo.IndexFiles -docs /apdb/WEB-INF/lib/src;
java org.apache.lucene.demo.SearchFiles;
%>
<p>Welcome to our website</p>
</strong></font>
</body>
</HTML>
5 years ago
Thank you for your help.

I download the lucene3.6.1, and unzip it, But I didn't find the page regarding installation & configuration.

Can you let me know where to find the instruction?

Thanks

5 years ago
Is any expert can help here?

I want to make a webpage on my tomcat 5.5.27 website can search the whole website according to a key word whcih is entered by user,
and then show all lists of the cooresponding HTMl/Word/execl etc.

I want to know how to download and how to configure it.

Thanks
5 years ago