lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wang <john.w...@gmail.com>
Subject Re: custom indexing
Date Wed, 16 Jun 2010 14:30:20 GMT
Thanks Michael!

For 1), I only see the api to get the uniqueTerms for the entire reader, not
for a specific field. Am I looking at the wrong place?

2) Awesome!!! Is there a wiki on flex indexing somewhere?

-John

On Wed, Jun 16, 2010 at 2:37 AM, Michael McCandless <
lucene@mikemccandless.com> wrote:

> 1) Yes, in fact you needn't wait for flex for this --
> IndexReader.getUniqueTermCount was added in 2.9.  But this will throw
> UOE on composite readers (Multi/DirReader).
>
> 2) Yes, you can make a Codec that separately maintains your own files,
> both on initial flush and on merge.  Make sure your Codec.files()
> returns your new files, so IndexFileDeleter doesn't delete them!
>
> Mike
>
> On Tue, Jun 15, 2010 at 5:29 PM, John Wang <john.wang@gmail.com> wrote:
> > Hi:
> >     Great job on the flex indexing feature! This opens new doors on how
> an
> > application to lucene for its usecases.
> >     I have coupla questions that I brought up before, the answer was to
> wait
> > for flex indexing. Now that flex indexing seems to be in a good shape, I
> > thought I'd bring it up again:
> > 1) Is it possible to obtain unique term count for a given field,
> > e.g. getUniqueTermCount(String field) on the segment reader?
> > 2) Is it possible to use Lucene's segment/merge mechanism to encode
> custom
> > segment files, my own StoredData format, or my own forward index some
> field
> > etc.?
> > Thanks
> > -John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Mime
View raw message