Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML Search of web page

 
Jehan Jaleel
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I would like to have add a search functionality to my site. It would allow users would enter a phrase and the entire web site's html would be searched to see if this phrase exists.

Does anyone know of any existing code or module that does this?


Thanks in advance for any help,
Jehan
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked out Apache Lucene?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say "HTML", do you actually mean static HTML files? if so, Apache Nutch might do the trick. If it's actually dynamic content (maybe from a DB or a CMS), then Lucene might be a good choice, or a native search (a SELECT in the case of a DB, or the CMS's built-in search API).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic