lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi" <koji.sekigu...@m4.dion.ne.jp>
Subject RE: about analyzer
Date Mon, 12 Sep 2005 15:02:34 GMT
You can add your own analyzer either when you create an IndexWriter
instance:

IndexWriter writer = new IndexWriter( directory, YOUR-OWN-ANALYZER, true
);

or when you add a document:

writer.addDocument( doc, YOUR-OWN-ANALYZER );

regards,

Koji


> -----Original Message-----
> From: Madhu Satyanarayana Panitini 
> [mailto:Madhu.Panitini@pass-consulting.com] 
> Sent: Monday, September 12, 2005 11:05 PM
> To: general@lucene.apache.org
> Subject: about analyzer
> 
> 
> Hai,
>  
> In the indexfile  method from the indexer.java file from 
> sample chapter
> in lucene in action page no. 14, In this statement
> doc.add(Field.Text("contents", new FileReader(f)));  // Index file
> content
>  Indexing the file content and added the document to the lucent index,
> which is already tokenized, I want know where it is tokenized exactly,
> because I want use my own analyzer to the text, where should I add my
> own analyzer. 
>  
> Thanks in advance
> nani
>  
>  
>  
> 



Mime
View raw message