Luke faster + Index Searcher is slow

2007-06-28 Thread Nott
I have an index in one file that has a size of abt 18GB of data When i run some queries on Luke the response comes in < 40 ms but the same when I use IndexSearcher gives me in 300ms -600 ms Any suggestions ? The code i use is File indexFile = new File(fileName);

Re: Luke faster + Index Searcher is slow

2007-06-28 Thread Grant Ingersoll
Are you opening the IndexSearcher every time you query? This is a costly operation. -Grant On Jun 28, 2007, at 12:03 PM, Nott wrote: I have an index in one file that has a size of abt 18GB of data When i run some queries on Luke the response comes in < 40 ms but the same when I use Inde

Re: Luke faster + Index Searcher is slow

2007-06-28 Thread Chris Hostetter
: Are you opening the IndexSearcher every time you query? This is a : costly operation. just repeating the above line because it's important. also... : > The code i use is : > File indexFile = new File(fileName); : >FSDirectory dir = FSDirectory.getDirecto

Re: Luke faster + Index Searcher is slow

2007-06-29 Thread Nott
Hi I even tried like this . But I'm not getting any benfifts. How to use Expert Search can you assist ? File indexFile = new File(fileName); FSDirectory dir = FSDirectory.getDirectory(indexFile); indexSearcher =new IndexSearcher(dir); int

Re: Luke faster + Index Searcher is slow

2007-06-29 Thread Nott
Hi I even tried like this . But I'm not getting any benfifts. How to use Expert Search can you assist ? File indexFile = new File(fileName); FSDirectory dir = FSDirectory.getDirectory(indexFile); indexSearcher =new IndexSearcher(dir); int

Re: Luke faster + Index Searcher is slow

2007-07-01 Thread Erick Erickson
What is your output? I'd expect it to go down. What are you seeing? Erick On 6/29/07, Nott <[EMAIL PROTECTED]> wrote: Hi I even tried like this . But I'm not getting any benfifts. How to use Expert Search can you assist ? File indexFile = new File(fileName);