aspose file tools*
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
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
Marshal

Joined: Mar 22, 2005
Posts: 41900
    
  63
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.


Ping & DNS - my free Android networking tools app
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
Marshal

Joined: Mar 22, 2005
Posts: 41900
    
  63
I'm fairly certain that it's part of the standard Lucene download; look in the "src" directory.
 
 
subject: Lucene