You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lucenenet.apache.org by Debajyoti Bera <db...@gmail.com> on 2008/02/13 22:10:37 UTC
lucene-net 2.1
Hi,
I was looking for the 2.1 release but noticed that there is no mention of it
in http://incubator.apache.org/lucene.net/ and there is no zip available for
download in the download area. It is of course tagged in the svn, so I can
just check out from rhe svn. But I am wondering if there is any reason 2.1 is
not announced on the homepage ?
Thanks,
- dBera
--
-------------------------------------------------------------
Debajyoti Bera, Graduate Student, Theory Grp, BU-CS
@ http://cs-people.bu.edu/dbera/ http://dbera.blogspot.com
@ 617-787-2838 (R) 617-358-2354 (O)
Re: Switching Analyzer or turn off stemming for specific field?
Posted by Min Yin <yi...@AI.SRI.COM>.
That works great. Thanks Heath!
Min
Heath Aldrich wrote:
> Hi Min,
>
> Here is a bit of code I use to do that... it is part of my custom Analyzer class
> You can see that if we are dealing with a field named item_code, then we use the keyword tokenizer... otherwise, we do snowball and whitespace...
>
>
> <snip>
>
> Public Class MyAnalyzer
> Inherits Analyzer
>
> Public Overloads Overrides Function TokenStream(ByVal fieldName As String, ByVal reader As TextReader) As TokenStream
>
> 'if we're dealing with an item code field, treat it with the keyword tokenizer
> If fieldName = "item_code" Then
> Return New Lucene.Net.Analysis.KeywordTokenizer(reader)
> Else
> 'treat these fields with whitespace and snowball
> Dim x = New Lucene.Net.Analysis.WhitespaceTokenizer(reader)
> Return New Lucene.Net.Analysis.Snowball.SnowballFilter(GetSyns(x), "English")
> End If
>
> End Function
>
> End Class
>
> </snip>
>
> -----Original Message-----
> From: Min Yin [mailto:yin@AI.SRI.COM]
> Sent: Thursday, February 14, 2008 1:02 PM
> To: lucene-net-user@incubator.apache.org
> Subject: Switching Analyzer or turn off stemming for specific field?
>
> Hello there!
>
> I have a question regarding the Snowball stemming analyzer. We are
> generally happy with the fuzzy search it provides, but there're cases we
> want an exact match, for example, a person's name.
>
> I wonder if it's possible to use multiple analyzers and switch between
> them for different lucene fields, or if there is a way to temporarily
> turn off the stemming when we want.
>
> Thanks in advance!
>
> Min
>
>
>
RE: Switching Analyzer or turn off stemming for specific field?
Posted by Heath Aldrich <ha...@aes2.com>.
Hi Min,
Here is a bit of code I use to do that... it is part of my custom Analyzer class
You can see that if we are dealing with a field named item_code, then we use the keyword tokenizer... otherwise, we do snowball and whitespace...
<snip>
Public Class MyAnalyzer
Inherits Analyzer
Public Overloads Overrides Function TokenStream(ByVal fieldName As String, ByVal reader As TextReader) As TokenStream
'if we're dealing with an item code field, treat it with the keyword tokenizer
If fieldName = "item_code" Then
Return New Lucene.Net.Analysis.KeywordTokenizer(reader)
Else
'treat these fields with whitespace and snowball
Dim x = New Lucene.Net.Analysis.WhitespaceTokenizer(reader)
Return New Lucene.Net.Analysis.Snowball.SnowballFilter(GetSyns(x), "English")
End If
End Function
End Class
</snip>
-----Original Message-----
From: Min Yin [mailto:yin@AI.SRI.COM]
Sent: Thursday, February 14, 2008 1:02 PM
To: lucene-net-user@incubator.apache.org
Subject: Switching Analyzer or turn off stemming for specific field?
Hello there!
I have a question regarding the Snowball stemming analyzer. We are
generally happy with the fuzzy search it provides, but there're cases we
want an exact match, for example, a person's name.
I wonder if it's possible to use multiple analyzers and switch between
them for different lucene fields, or if there is a way to temporarily
turn off the stemming when we want.
Thanks in advance!
Min
Switching Analyzer or turn off stemming for specific field?
Posted by Min Yin <yi...@AI.SRI.COM>.
Hello there!
I have a question regarding the Snowball stemming analyzer. We are
generally happy with the fuzzy search it provides, but there're cases we
want an exact match, for example, a person's name.
I wonder if it's possible to use multiple analyzers and switch between
them for different lucene fields, or if there is a way to temporarily
turn off the stemming when we want.
Thanks in advance!
Min
RE: lucene-net 2.1
Posted by Digy <di...@gmail.com>.
>I was looking for the 2.1 release but noticed that there is no mention of it in http://incubator.apache.org/lucene.net/ and there is no zip available for download in the download area. It is of course tagged in the svn, so I can just check out from rhe svn
Lucene.Net 2.1 is not officially released (yet). But, I think, it is mature enough to be used in production environments.
>I am wondering if there is any reason 2.1 is not announced on the homepage ?
So do I. The only committer of this project george@aroush.net is missing for a long time.
DIGY