lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murray Altheim <m.alth...@open.ac.uk>
Subject Re: Question about PorterStemFilter class
Date Fri, 29 Oct 2004 14:39:14 GMT
Erik Hatcher wrote:
> On Oct 29, 2004, at 10:09 AM, Otis Gospodnetic wrote:
> 
>>You should open a bug entry in Bugzilla and then attach your code to
>>it, with ASL on top.
> 
> 
> However, there is a PorterStemFilter built into Lucene.  Please compare 
> with that.
> 
> 	Erik

Erik,

Yes, I understand that. In looking at the code it is quite obviously
of the same origin (i.e. from Martin Porter) but may be an older
version (I couldn't quite tell). It doesn't come close to any normal
Java programming guidelines, and while I didn't try to modify the
latest version so that it would, entirely, because part of the
reason I think whoever wrote the original code formatted it the way
they did was to enable an easier reading of the comparison strings.
I've tried to come to some compromise, as well as (as I mentioned)
predeclaring the Strings so that the VM isn't constantly recreating
them.

In short, I *think* I'm using a newer version of the code than the
one in the repository, plus I've cleaned it up.

Murray

......................................................................
Murray Altheim                    http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK               .

    [International terrorism] is a fantasy that has been exaggerated
    and distorted by politicians. It is a dark illusion that has
    spread unquestioned through governments around the world, the
    security services, and the international media. In an age when
    all the grand ideas have lost credibility, fear of a phantom
    enemy is all the politicians have left to maintain their power."

    The making of the terror myth, The Guardian
    http://www.guardian.co.uk/terrorism/story/0,12780,1327904,00.html

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


Mime
View raw message