Re: Index statistics

2011-07-06 Thread Andres Taylor
Thanks. It was what I expected, but it's nice to have it confirmed. On Tue, Jul 5, 2011 at 9:39 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > This API doesn't exist today. > > Lucene has long needed for queries impls to do this, so that we can > properly plan/optimize how the query

Re: Index statistics

2011-07-05 Thread Michael McCandless
This API doesn't exist today. Lucene has long needed for queries impls to do this, so that we can properly plan/optimize how the query is run. EG an AND query would use this to pick the more restrictive clause to drive the intersection. For TermQuery you could just call IR.docFreq? (Doesn't tak

Index statistics

2011-07-05 Thread Andres Taylor
Hi there, A work with Neo4j , a NoSQL graph database tightly coupled with Lucene. I am now working on an optimizing execution engine. To do this well, I would like to know more about the existing Lucene indices. Ideally, I'd like to be able to ask a Lucene index how many hits a