Re: [Zope-dev] Minor typos/changes to ZCatalog.
On Fri, 23 Feb 2001, Chris McDonough wrote: The short answer is "you can't, easily". I'm a bit confused. Will FieldIndexes also behave like TextIndex, in that they remove stop words, digits and so forth? I think I've picked up somewhere that FieldIndexes treats the whole content of the attribute it indexes as one big chunk of .. erm... characters, and doesn't remove anythink? Correct? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Minor typos/changes to ZCatalog.
Erik Enge wrote: Will FieldIndexes also behave like TextIndex, in that they remove stop words, digits and so forth? No. I think I've picked up somewhere that FieldIndexes treats the whole content of the attribute it indexes as one big chunk of .. erm... characters, and doesn't remove anythink? Correct? Yes. But it's not just characters. A field index indexes an object, and uses the overloaded comparison operators for that object to put it in an appropriate place. So, you can index DateTime objects, tuples, strings, numbers, floats... -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Minor typos/changes to ZCatalog.
[Steve Alexander] | But it's not just characters. A field index indexes an object, and uses | the overloaded comparison operators for that object to put it in an | appropriate place. So, you can index DateTime objects, tuples, strings, | numbers, floats... Could a field index succesfully handle the example you posted some time ago, storing the relative path of each object? -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Minor typos/changes to ZCatalog.
On Fri, 23 Feb 2001, Michael R. Bernstein wrote: On the subject of numbers, I was wondering how to index alphanumeric values like ISBN numbers. Why can't you use FieldIndexes? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Minor typos/changes to ZCatalog.
Probably. Keyword indexes work too. Yeah, that was what I was getting at :) Yes. This is the number of objects indexed by the index. If it's not working, that's a bug. Then it looks like a bug. Lucky us, I don't have time to analyze this in a week or so. Sorry. I'd like to help. No. ;-) This is one of the things I'd like to get done soon. Great! When you get around to do it, maybe you could poke at Amos to update his ZCatalogHowTo also? It's quite out of date. It should perhaps be removed in light of the fact that the Zope Book has a catalog chapter. Maybe a "This How-To covers product such-and-such version x.x" is in order as a standard feature of the How-To? This is a good idea. It would be an even better idea to allow folks to add comments to howto pages, so that if the original author did not maintain it well, well-placed comments could prevent folks from taking wild goose chases. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Minor typos/changes to ZCatalog.
On Fri, 23 Feb 2001, Chris McDonough wrote: Maybe a "This How-To covers product such-and-such version x.x" is in order as a standard feature of the How-To? This is a good idea. It would be an even better idea to allow folks to add comments to howto pages, so that if the original author did not maintain it well, well-placed comments could prevent folks from taking wild goose chases. Yes, maybe like the way the ACS lets you? That would work very nicely. Great suggestion! :) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Minor typos/changes to ZCatalog.
"R. David Murray" wrote: On Fri, 23 Feb 2001, Michael R. Bernstein wrote: As you can see by the second example, an ISBN can have letters as well as numbers in it, so it cannot be represented by an integer. Text indexes seem to ignore 'words' that contain numbers, though. Any suggestions? A field or keyword index would work. Or you can make a very small change to splitter.c to stop it from ignoring numbers. Which is something I'd like to see as a standard feature of Catalog, actually. I can't think of any instances of using a text index where I did *not* want words with numbers indexed, and have a number of instances where I *do* want words with numbers indexed. Actually, the same applies to pure numbers, as well. Hmm. this seems like there ought to be a checkbox next to the 'Add Index' form field labeled 'index numbers?'. Or maybe a 'Text and Numbers' index as an additional index type. What change needs to be made to splitter.c? Do I have to recompile Zope afterwards, or will a restart do it? Michael Bernstein. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )