aspose file tools*
The moose likes Other Open Source Projects and the fly likes Index file location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Index file location" Watch "Index file location" New topic
Author

Index file location

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

I am getting
Cannot save index to 'index' directory, please delete it first


Where does lucene stores the index file.
I am unable to find index file location(I was successful for search), I have given the location "C:\Documents and Settings\upop>java org.apache.lucene.demo.IndexFiles D:\ss\db
_backup\lucene-2.4.1\src"

Second question ,

How lucene will search into the JSP pages if jsp pages are dependent on each other ,we may get Exception if the condition is not satisfied.

Can you help me in this case.


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

Joined: Mar 22, 2005
Posts: 42632
    
  65
Lucene stores the index in the directory where you tell it to store it. Did you follow the instructions contained in the error message?

How lucene will search into the JSP pages if jsp pages are dependent on each other ,we may get Exception if the condition is not satisfied.

Do you mean "index" instead of "search"? It's important to keep those two aspects of Lucene usage apart.

Either your indexing code accesses JSP *files*, in which case there is no notion of dependencies (files do not depend on one another, at least not as far as Lucene is concerned), or it accesses HTML pages created by JSPs (in which case the file dependencies have been resolved at the server, and are irrelevant to the HTML that was generated).


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

Joined: Jan 07, 2009
Posts: 629

I will explain the scenario in detail

If second JSP page is dependent on the first page and If in the search we get second jsp page address , and if we click on that JSP page then we may not get the expected result.
James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
f second JSP page is dependent on the first page and If in the search we get second jsp page address , and if we click on that JSP page then we may not get the expected result.


Well then, is it a good idea to index JSP files - they usually contain java code, and generate content dynamically?
 
 
subject: Index file location