This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to run Java Search Engine as JSP page (Tomcat 5.5.27)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to run Java Search Engine as JSP page (Tomcat 5.5.27)?" Watch "How to run Java Search Engine as JSP page (Tomcat 5.5.27)?" New topic
Author

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

David Moo
Greenhorn

Joined: Sep 10, 2012
Posts: 6
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

Perhaps Lucene will suit your purposes?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
Lucene is great. You'll need Apache Tika to index some of those structured file formats with Lucene, but it integrates easily.


Ping & DNS - my free Android networking tools app
David Moo
Greenhorn

Joined: Sep 10, 2012
Posts: 6
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

CLick the Documentation and Tutorials links on the Lucene site.
David Moo
Greenhorn

Joined: Sep 10, 2012
Posts: 6
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>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to run Java Search Engine as JSP page (Tomcat 5.5.27)?
 
Similar Threads
classpath for servlets and struts
Search Engine
putting a printable word doc on website
Request,Response object creation?
debug web application using intellij and tomcat 5