You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Otis Gospodnetic <ot...@yahoo.com> on 2003/09/15 11:10:21 UTC

Re: diff�rents_Analyzer_for_2_fields

You can write a custom Analyzer that performs different actions on
different fields.  Check out the FAQ at jGuru for an example.

Otis

--- Sebastien X <cv...@noos.fr> wrote:
> Hi,
> 
> I've an another question.
> 
> For indexing my documents I use this code :
> writer = new IndexWriter(index, new StandardAnalyzer(), create);
> 
> I use 2 fields "content" and "title" but I would use diff�rents
> Analyzer for this 2 fields (one who could use numerical and the other
> not, for example)
> Is there a way to do this?
> 
> thanks in advance
> 
> S�bastien 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com