Enabling * searching in ZCatalog
I have more than a few ZCatalogs and while playing around with them the other day, I noticed that a few of them could not search using wild cards like "*" and "?", they would return no results. For the life of me I could not figure out the differences between them and the ones that do search with wildcards. Anyone have a pointer? Jake ____________________ http://www.ZopeZone.com "Zoping for the rest of us"
On Aug 18, 2004, at 12:28, Jake wrote:
I have more than a few ZCatalogs and while playing around with them the other day, I noticed that a few of them could not search using wild cards like "*" and "?", they would return no results.
For the life of me I could not figure out the differences between them and the ones that do search with wildcards.
Anyone have a pointer?
Wildcard searches have nothing to do with ZCatalog as such, whether they are possible is a function of the Indices you use. Only very few implement wildcard searches. There's the ZCTextIndex and, with a lot more capabilities, Andreas Jung's TextIndexNG. jens
So, I guess my question is, why would two exact same ZCatalogs, with the same set of indexes have two different behaviors when it comes to wildcard searches? Jake -- http://www.ZopeZone.com Jens Vagelpohl said:
On Aug 18, 2004, at 12:28, Jake wrote:
I have more than a few ZCatalogs and while playing around with them the other day, I noticed that a few of them could not search using wild cards like "*" and "?", they would return no results.
For the life of me I could not figure out the differences between them and the ones that do search with wildcards.
Anyone have a pointer?
Wildcard searches have nothing to do with ZCatalog as such, whether they are possible is a function of the Indices you use. Only very few implement wildcard searches. There's the ZCTextIndex and, with a lot more capabilities, Andreas Jung's TextIndexNG.
jens
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Aug 18, 2004, at 13:57, Jake wrote:
So, I guess my question is, why would two exact same ZCatalogs, with the same set of indexes have two different behaviors when it comes to wildcard searches?
Jake
No idea. Different settings maybe. jens
Jens Vagelpohl wrote at 2004-8-18 12:31 +0200:
... Wildcard searches have nothing to do with ZCatalog as such, whether they are possible is a function of the Indices you use. Only very few implement wildcard searches. There's the ZCTextIndex and, with a lot more capabilities, Andreas Jung's TextIndexNG.
And "ManagableIndex". They support wildcard searches even for (string based) Field- and KeywordIndexes (and not only TextIndexes). <http://www.dieter.handshake.de/pyprojects/zope> -- Dieter
Jake wrote at 2004-8-18 06:28 -0400:
I have more than a few ZCatalogs and while playing around with them the other day, I noticed that a few of them could not search using wild cards like "*" and "?", they would return no results.
For the life of me I could not figure out the differences between them and the ones that do search with wildcards.
Check whether the lexicons/vocabularies support globbing. -- Dieter
To answer my own question (with a little help from the group). It the ZCatalog needed a Vocabulary. As soon as I dropped one in, went back to the Index, selected it as the default and reindexed it, the searches worked like a charm. Thanks, Jake -- http://www.ZopeZone.com Jake said:
I have more than a few ZCatalogs and while playing around with them the other day, I noticed that a few of them could not search using wild cards like "*" and "?", they would return no results.
For the life of me I could not figure out the differences between them and the ones that do search with wildcards.
Anyone have a pointer?
Jake ____________________ http://www.ZopeZone.com "Zoping for the rest of us"
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Dieter Maurer -
Jake -
Jens Vagelpohl