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


Win a copy of Java 8 in Action this week in the Java 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: 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: 39575
    
  27
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 - updated with new look and Ping home screen widget
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: 39575
    
  27
I'm fairly certain that it's part of the standard Lucene download; look in the "src" directory.
 
Consider Paul's rocket mass heater.
 
subject: Lucene
 
Similar Threads
lucene jsp error
Lucene - The First Parameter of the Index Writer
0 hits while using pharsequery
Lucene Search
Lucene beginner question