Re: Explicit setting of NIOFSDirectory not respected

2012-12-12 Thread Neil Ireson
Hi Uwe, Unfortunately my IDE (Intellij) does not warn me about calling a static method on a different class name, a nice idea I shall request the feature. Anyway, my suggestion to avoid the confusion still holds; that the FSDirectory open method is overridden in the subclasses, thus "NIOFSDire

RE: Explicit setting of NIOFSDirectory not respected

2012-12-12 Thread Uwe Schindler
Hi, > Thanks for that, I had not realised that the open method was simply > inherited from the FSDirectory, I should have read the docs. > > However, it makes no sense to me that a call to NIOFSDirectory.open() can > end up opening a MMapDirectory, and in general that a call to one subclass > can

RE: Explicit setting of NIOFSDirectory not respected

2012-12-12 Thread Neil Ireson
Thanks for that, I had not realised that the open method was simply inherited from the FSDirectory, I should have read the docs. However, it makes no sense to me that a call to NIOFSDirectory.open() can end up opening a MMapDirectory, and in general that a call to one subclass can end up openin

RE: Explicit setting of NIOFSDirectory not respected

2012-12-12 Thread Uwe Schindler
If you want a specific directory implementation, instantiate it directly (new NIOFSDirectory)? If you use FSDirectory.open() it will use the autodetected one depending on OS and bitness. About configuring your server from MMAP in a correct way, read http://blog.thetaphi.de/2012/07/use-lucenes-m