Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Lucene  RSS feed

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • 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
Posts: 42970
73
  • 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
  • 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
Posts: 42970
73
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!