• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
Greenhorn
Posts: 6
  • 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
 
Sheriff
Posts: 67266
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps Lucene will suit your purposes?
 
Rancher
Posts: 43009
76
  • 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
  • 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
Sheriff
Posts: 67266
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
  • 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>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!