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 Head First Android this week in the Android 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: 636

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: 42956
    
  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: 636

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: 42956
    
  73
I'm fairly certain that it's part of the standard Lucene download; look in the "src" directory.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Lucene
 
jQuery in Action, 3rd edition