TextIndexes index individual words separately (using a vocabulary object to
identify each word in the catalog). All non-alphanumeric characters (such as
punctuation) are dropped so that excludes searching for "?" or "*" or any
other non-alphanumerics using TextIndexes.
Not much of this is formally documented, but you can review the source (in
Python and C) for the indexing mechanism in:
{YourZopeDir}/lib/python/SearchIndex
-----Original Message-----
From: Chris Withers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 10, 2000 2:37 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope] substring search on zcatalog textindex
Casey Duncan wrote:
>
> > So the question is, does anyone know of a simple way to get the zcatalog
> to
> > also find substring matches on a textindex?
> >
> > --
> > Peter Armstrong
>
> For Text Indexes you can use wildcards like * and ? in searches. So that
> searching for Foo* would find Foo, FooBar, fool, etc. I'm not sure if this
> works for Field or Keyword indexes though, I haven't tried it. My though
is
> it only works for text indexes which should help you anyway.
What do you do if you actually want to search for a '*' or a '?' ?
cheers,
Chris
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )