How to construct a MultiReader?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to construct a MultiReader?

spring
Hi,

how can I construct a MultiReader?

There is only a constructor with an IndexReader-array. But IndexReader is
abstract and all other IndexReader-implementations also need an IndexReader
as constructor param.

Now I'm a bit confused...

I want to construct a MultiReader which reads multiple FDDirectories.

Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to construct a MultiReader?

Shai Erera
Hi

You can use IndexReader.open() static method to open a reader over
directories, file-systems etc.
Does that help?

Shai

On Thu, Feb 21, 2008 at 3:04 PM, <[hidden email]> wrote:

> Hi,
>
> how can I construct a MultiReader?
>
> There is only a constructor with an IndexReader-array. But IndexReader is
> abstract and all other IndexReader-implementations also need an
> IndexReader
> as constructor param.
>
> Now I'm a bit confused...
>
> I want to construct a MultiReader which reads multiple FDDirectories.
>
> Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Regards,

Shai Erera
Reply | Threaded
Open this post in threaded view
|

RE: How to construct a MultiReader?

spring
Thank you.

> -----Original Message-----
> From: Shai Erera [mailto:[hidden email]]
> Sent: Donnerstag, 21. Februar 2008 14:11
> To: [hidden email]
> Subject: Re: How to construct a MultiReader?
>
> Hi
>
> You can use IndexReader.open() static method to open a reader over
> directories, file-systems etc.
> Does that help?
>
> Shai
>
> On Thu, Feb 21, 2008 at 3:04 PM, <[hidden email]> wrote:
>
> > Hi,
> >
> > how can I construct a MultiReader?
> >
> > There is only a constructor with an IndexReader-array. But
> IndexReader is
> > abstract and all other IndexReader-implementations also need an
> > IndexReader
> > as constructor param.
> >
> > Now I'm a bit confused...
> >
> > I want to construct a MultiReader which reads multiple
> FDDirectories.
> >
> > Thank you.
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>
> --
> Regards,
>
> Shai Erera
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]