Re: Problems with IndexSearcher

2010-07-05 Thread Daniel Wertheim
I get that a searcher needs an index to search, but why not let us create an instance of the searcher which doesn't blow up untill consumed? It takes an Directory as dependency, not a writer... The LuceneDirectory could be responsible for initializing the dir so that the searcher doesn't have a dir

RE: Problems with IndexSearcher

2010-07-05 Thread Digy
Sorry, this is how lucene works. I can not think of a case where a IndexSearcher is needed on an not-existing-index. Could that be a XY problem? (http://www.perlmonks.org/index.pl?node_id=542341) "The XY problem is when you need to do X, and you think you can use Y to do X, so you ask about how