This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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: 629

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.



http://www.androcid.com/
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  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: 629

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: 42954
    
  73
I'm fairly certain that it's part of the standard Lucene download; look in the "src" directory.
 
rocket mass heater kickstarter
 
subject: Lucene