Ticket #9 (closed defect: fixed)

Opened 3 weeks ago

Last modified 3 weeks ago

Using deprecated SWISH::API::StemWord() causes spurious warning

Reported by: joshr Assigned to: somebody
Priority: minor Component: swish
Version: 2.6 Keywords:
Cc:

Description (Last modified by joshr)

If code uses SWISH::API::StemWord? on a newly-built index, the code emits the warning:

Old stemmer 'Stem' is no longer supported -- using Stemming_en1 instead.

Which is spurious. The correct warning (it seems to me) would be:

StemWord?() is deprecated. Use Fuzzify() or fuzzy_word()

(sic).

Took me a while to track this one down. Let me know if a reproducible testcase is needed.

Found using swish-e-2.5.6-2008-02-12.tar.gz. Using Fuzzify() caused the warning to stop.

Change History

04/22/08 09:33:13 changed by joshr

  • summary changed from Using SWISH::API::StemWord() causes spurious warning to Using deprecated SWISH::API::StemWord() causes spurious warning.

04/22/08 09:33:39 changed by joshr

  • description changed.

04/22/08 09:34:45 changed by joshr

  • description changed.

04/22/08 09:48:31 changed by karpet

  • status changed from new to closed.
  • resolution set to fixed.

stemming features marked as deprecated have been removed from 2.6 branch.

The issue here is that StemWord?() hardcodes "Stem" as the stemmer and then the warning was triggered later.

I am leaving them in the as-yet-unannounced 2.4.6 release since the warning is so minor and does not cause any change in behaviour.