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 John Seer <pu...@yahoo.com> on 2009/04/11 00:09:58 UTC

Different Analyzer for different fields in the same document

Hello,
There is any way that a single document fields can have different analyzers
for different fields?

I think one way of doing it to create custom analyzer which will do field
spastic analyzes..

Any other suggestions?    
-- 
View this message in context: http://www.nabble.com/Different-Analyzer-for-different-fields-in-the-same-document-tp22995442p22995442.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Different Analyzer for different fields in the same document

Posted by John Seer <pu...@yahoo.com>.
Thanks this is useful class for future...

Koji Sekiguchi-2 wrote:
> 
> John Seer wrote:
>> Hello,
>> There is any way that a single document fields can have different
>> analyzers
>> for different fields?
>>
>> I think one way of doing it to create custom analyzer which will do field
>> spastic analyzes..
>>
>> Any other suggestions?    
>>   
> 
> There is PerFieldAnalyzerWrapper
> http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc/org/apache/lucene/analysis/PerFieldAnalyzerWrapper.html
> 
> Koji
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Different-Analyzer-for-different-fields-in-the-same-document-tp22995442p22996572.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Different Analyzer for different fields in the same document

Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
John Seer wrote:
> Hello,
> There is any way that a single document fields can have different analyzers
> for different fields?
>
> I think one way of doing it to create custom analyzer which will do field
> spastic analyzes..
>
> Any other suggestions?    
>   

There is PerFieldAnalyzerWrapper
http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc/org/apache/lucene/analysis/PerFieldAnalyzerWrapper.html

Koji


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org