aspose file tools
The moose likes Other Open Source Projects and the fly likes Lucene Search Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Lucene Search" Watch "Lucene Search" New topic
Author

Lucene Search

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 634

How should I build an index using lucene if I am having several JSP pages.

I am able to search using following method



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
What is the connection between Lucene and the JSP pages? Are you trying to index the HTML that gets generated by the JSP pages? If so, then check the src/demo directory of the Lucene distribution - it contains an example of how to index HTML. You may wish to substitute a more capable and/or discerning HTML parser like NekoHTML instead of the one used in the example.

If you meant something else, tell us in detail what the problem is.
chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 634

Thanks
chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 634

What indexHtml file does ?
what is the input for root_directory ?
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
What indexHtml file does ?

After looking at its source code, what do you think it does?

what is the input for root_directory ?

You should work through the various "demo*.html" pages that come with Lucene. demo3.html in particular talks about that example.
chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 634

Just give me the URL from where you are suggesting demo3.html
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
It's on the "docs" directory of the Lucene distribution. It's generally a good idea to read the documentation of a library one intends to work with, and especially so if one encounters problems.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Lucene Search