lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deminix <demi...@gmail.com>
Subject Re: Term Limit?
Date Sat, 04 Apr 2009 15:57:57 GMT
Yea.  That is all that matters anyway right, is the limit at the segment
level?


On Sat, Apr 4, 2009 at 8:44 AM, Michael McCandless <
lucene@mikemccandless.com> wrote:

> On Sat, Apr 4, 2009 at 10:25 AM, deminix <deminix@gmail.com> wrote:
>
> > AFAIK there isn't an api that returns the current number of terms,
> correct?
>
> Alas, no.  This limitation has been talked about before... maybe we
> should add it.
>
> But: it's not actually simple to compute, at the MultiSegmentReader
> level.  Each SegmentReader knows the unique term count, though.
>
> I wonder if we could expose the API, but if you call it on a
> MultiSegmentReader, it will throw UnsupportedOperationException.
> Instead, you could call getSequentialSubReaders (added in 2.9), and
> ask those readers for the unique term count.  Would something like
> that work?
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message