Hello,

I think you didn't set that system property properly, or maybe you are
using some old Lucene release that does not have this functionality.
I just checked the source of FSDirectory, and the code looks right.

Otis

--- "Giri, Sandeep" <[EMAIL PROTECTED]> wrote:
> Hi!
> I don't want to give write permission to the index directory while
> searching.
> But lucene needs write permission on index directory so that it can
> create
> locks while searching.
> So, I tried to use the "-DdisableLuceneLocks=true" but its not
> working.
> It gives the following error:
> -----<snip>--------------
> SEVERE: 
> java.io.IOException: Permission denied
>         at java.io.UnixFileSystem.createFileExclusively(Native
> Method)
>         at java.io.File.createNewFile(File.java:827)
>         at org.apache.lucene.store.FSDirectory$1.obtain(Unknown
> Source)
>         at org.apache.lucene.store.Lock$With.run(Unknown Source)
>         at org.apache.lucene.index.IndexReader.open(Unknown Source)
>         at org.apache.lucene.index.IndexReader.open(Unknown Source)
>         at org.apache.lucene.search.IndexSearcher.<init>(Unknown
> Source)
>         at FileSearcherCmdLine.search(FileSearcherCmdLine.java:93)
>         at FileSearcherCmdLine.main(FileSearcherCmdLine.java:689)
> [Search Time]: 0.0 secs
> -----</snip>--------------
> 
> What is the solution?
> Somebody, please help me out..
> 
> Thanks in advance.
> 
> Best Regards,
> Sandeep Giri
> Member Technical 
> D.E.Shaw India Software Pvt. Ltd. 
> Hyderabad.
> DISCLAIMER :"Any views expressed in this message are those of the
> individual
> sender, except where the sender specifically states them to be the
> views of
> D. E. Shaw India Software Private Limited., or any of its affiliates"
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to