the fsdirectory does use temp files for locks, you can customize the
location by setting either java property
"org.apache.lucene.lockDir" or "java.io.tmpdir"
see fsdirectory source for its usage.
hth,
-kapil
On Tue, 23 May 2006 10:36:09 -0700, Andi Vajda <[EMAIL PROTECTED]>
wrote:
On Tue, 23 May 2006, Taquin Ho wrote:
I have a straightforward installation of pyLucene 9.1 and am calling it
through an apache server with the help of a python script.
For that to work you need to make sure that the thread PyLucene is
running in is an instance of PyLucene.PythonThread. A regular thread
won't do as libgcj garbage collector needs to initialize the thread
before it's started.
The apache server is not running as the local system account but a
windows user which has access to the necessary shares where the indexes
are stored.
A problem occurs when the index is to be created and I am guessing it is
because PyLucene attempts to create the index in some temporary file or
directory that is does not have access to.
File "core\src\bs_search.py", line 64, in __init__
self.analyzer, True)
File "C:\programs\python24\lib\site-packages\PyLucene.py", line 2261,
in __init__
newobj = _PyLucene.new_IndexWriter(*args)
JavaError: java.io.IOException: CreateFile failed
I need to know if this is the case, and if so, where the location is, so
I can give the particular windows user access to the location.
If its not the case, does anyone have any idea what the problem is?
It's quite possible that this is the case. PyLucene is a compilation of
Java Lucene with gcj, wrapped with c++ for use by python. If you take a
look at the sources for Java Lucene
(http://svn.apache.org/viewvc/lucene/java/), you should find the answer
to your question. You may also want to ask [EMAIL PROTECTED]
Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev