lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Analyzer
Date Tue, 25 Nov 2008 16:09:59 GMT
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 <ian.lea@gmail.com> 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
> <Allahbaksh_Asadullah@infosys.com> 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: 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