Meaningless Drivel is fun!*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 629

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

I am able to search using following method



http://www.androcid.com/
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42360
    
  64
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.


Ping & DNS - my free Android networking tools app
chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

Thanks
chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

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

Joined: Mar 22, 2005
Posts: 42360
    
  64
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: 629

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

Joined: Mar 22, 2005
Posts: 42360
    
  64
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.
 
wood burning stoves
 
subject: Lucene Search