File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lucene

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 641
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you provide me URL to download it ?
I need to search some text from my JSP pages too.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic