File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run Java Search Engine as JSP page (Tomcat 5.5.27)?

 
David Moo
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps Lucene will suit your purposes?
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucene is great. You'll need Apache Tika to index some of those structured file formats with Lucene, but it integrates easily.
 
David Moo
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CLick the Documentation and Tutorials links on the Lucene site.
 
David Moo
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic