Hmmmm, how would you do this without open/closing your
IndexWriter around different types of documents? And as far
as querying is concerned, I doubt the input would be a file, so
one of the canned analyzers should do. Although "care should
be taken <G>"....

Best
Erick

On Tue, Nov 25, 2008 at 10:57 AM, Ian Lea <[EMAIL PROTECTED]> wrote:

> Yes, you can.  But it is generally best to use the same analyzer for
> indexing and for searching so, assuming that you want searches to find
> matches in files of whatever type, I'd recommend pre-processing the
> files to a common text format before indexing and then using the same
> analyzer for all of them.
>
>
> --
> Ian.
>
>
> On Tue, Nov 25, 2008 at 3:40 PM, Allahbaksh Mohammedali Asadullah
> <[EMAIL PROTECTED]> wrote:
> > HI All,
> > I am indexing a set file type (html, js,jsp,xml etc). All the file type
> have a common field called as text. This field contains all the file data.
> Can I have different analyzer for depending upon file type.
> >
> > Note: I am indexing all file type with same indexer.
> >
> > Regards,
> > Allahbaksh
> >
> > Allahbaksh Mohammedali Asadullah
> >
> > http://allahbaksh.blogspot.com<http://allahbaksh.blogspot.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to