This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Lucene Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Lucene" Watch "Lucene" New topic
Author

Lucene

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 639

How to search any text from html file using lucene.
I am able to search it from normal lucene but I want it to implement it from html search.
This is my sample code snippet which i am using to add .html files to search but what would i do next to search properly.



Author @ http://www.ideasforideas.org/
Moody blogger who do not like to behave like target setting machines work.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Lucene comes with a demo that shows one approach to indexing HTML documents. Check out the org.apache.lucene.demo.IndexHTML class and the org.apache.lucene.demo.html package.
chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 639

Can you provide me URL to download it ?
I need to search some text from my JSP pages too.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
I'm fairly certain that it's part of the standard Lucene download; look in the "src" directory.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Lucene
 
It's not a secret anymore!