lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheng <zhoucheng2...@gmail.com>
Subject Re: How to separate one index into multiple?
Date Mon, 20 Feb 2012 09:12:57 GMT
great idea!

On Sun, Feb 19, 2012 at 9:43 PM, Li Li <fancyerii@gmail.com> wrote:

> you can delete by query like -category:category1
>
> On Sun, Feb 19, 2012 at 9:41 PM, Li Li <fancyerii@gmail.com> wrote:
>
> > I think you could do as follows.  taking splitting it to 3 indexes for
> > example.
> > you can copy the index 3 times.
> > for copy 1
> >   for(int i=0;i<reader1.maxDocs();i+=3){
> >       reader1.delete(i);
> >   }
> > for copy
> >   for(int i=1;i<reader2.maxDocs();i+=3){
> >       reader2.delete(i);
> >  }
> > ....
> >  and then optimize these 3 indexes
> >
>

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