Personally, I am of the opinion that sending a Catalog raw queries is not
very useful for really powerful searching... hopefully this changes in the
future, but for now...
Since catalog doesn't have anything built-in that does this, other than
globbing vocabularies, you have to do this within your appliction. What you
want to do is hijack and rewrite user queries before sending them through a
catalog query... for example:
word = 'dancing'
newword = re.sub('ing$', '*', word)
#newword is now 'danc*' which
This would work with plural words as well, as long as you have a useful set
of patterns for word endings...
For alternate spellings, abbreviations, and synonyms you would need to
create lookup tables and indexed methods that took advantage of them for
text indexes. This works only for text indexes though...
In summary, use query rewrites for word endings and auto-wildcarding (the
work is done at search time)... and use methods that weight and translate
your text in your product code (the work is done at index time)...
From: Dirk Datzert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:38 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope-dev] ZCatalog
the search engine htdig has a fuzzy feature which automatically search for
different endings or alternative spelling of a word, based on the ispell
[EMAIL PROTECTED] schrieb:
> what do you mean by fuzzy? Do you mean with wildcards, NL, or something
> -----Original Message-----
> From: Dirk Datzert [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 06, 2001 1:03 PM
> To: [EMAIL PROTECTED]
> Subject: [Zope-dev] ZCatalog
> I'm looking for a howto or a hint for fuzzy search in german and english
> with ZCatalog / CatalogQuery
> Can anybody sent me a URL ?
> Zope-Dev maillist - [EMAIL PROTECTED]
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope )
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -