This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Index file location

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

 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
Space pants. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!