[Zope-dev] ZCatalog - find all empty items

2001-11-12 Thread ben
Can anyone tell me how to find all items that have an empty KeywordIndex? I've trying something like this: dtml-in expr=catagoryManager.Catalog(parents=_.None) Thanks. ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] ZCatalog - hiding query results

2001-11-10 Thread abel deuring
Igor Stroh wrote: Hi all, I don't know if it's the right list to post to, but I have the following problem: I have several objects (documents, folders etc) that are accessible only by a certain user role, this objects are cataloged. Now if I query the catalog the brains of these objects

[Zope-dev] ZCatalog bug, probably BTrees, what Zope version is this fixed in?

2001-10-24 Thread Chris Withers
Hi, I have a ZCatalog search that returns 213 results. As soon as I add a sort_on and sort_order to the request doing this search, the number of results drops to about 60. This reminds me of some bugs in the BTrees package that I remember being solved in the not too distant past. Can someone

[Zope-dev] ZCatalog UnpickleableError

2001-10-18 Thread brian.r.brinegar.1
Under a 2.4.1 install I recieve the following error while trying to add a ZCatalog. Traceback (innermost last): File /data/www/Zope/src/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /data/www/Zope/src/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line

[Zope-dev] ZCatalog searching for missing values

2001-10-08 Thread Bjorn Stabell
Hi all, We've installed Kavio's CatalogQuery product and are very happy with it. Haven't looked at the ZOQLMethod from iuveno yet, but both look like great steps in the right direction. I have one question: is it possible using a normal catalog query or Kavio's catalog query to check if a value

Re: [Zope-dev] ZCatalog searching for missing values

2001-10-08 Thread Stephan Richter
We've installed Kavio's CatalogQuery product and are very happy with it. Haven't looked at the ZOQLMethod from iuveno yet, but both look like great steps in the right direction. Thanks. I actually need to look at Casey's code and see what I can reuse. The efficiency of my version is not that

RE: [Zope-dev] ZCatalog searching for missing values

2001-10-08 Thread Bjorn Stabell
Having an exists function would be great. I was trying to do the same using CatalogQuery, but I found no way to check for Missing.Value, which is the repr() of what's in the catalog's metadata field for objects that don't have that attribute/function. I also ran into problems doing more complex

RE: [Zope-dev] ZCatalog searching for missing values

2001-10-08 Thread Bjorn Stabell
:33 To: Bjorn Stabell Cc: [EMAIL PROTECTED] Subject: RE: [Zope-dev] ZCatalog searching for missing values I just tried out ZOQLMethod as well. Couldn't get it to work, but it looks like really solid craftsmanship. I like the user-friendly way of selecting base object and the complete

Re: [Zope-dev] ZCatalog API

2001-10-05 Thread Steve Alexander
E. Seifert wrote: Hi list, as I'm not very familiar with the internals of ZCatalog I have a question to all you API experts: Why does ZCatalog.py (under Zope 2.4.1) specify a 'addIndex' permission for a method called 'manage_delIndexes' although there is no such method? The only method

Re: [Zope-dev] ZCatalog: path summary indices not generated

2001-10-03 Thread Andreas Jung
- Original Message - From: Shane Rowatt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 00:54 Subject: [Zope-dev] ZCatalog: path summary indices not generated Unfortunately I tried the same with the 'path' index by adding the following to DTMLMethod.py

Re: [Zope-dev] ZCatalog: path summary indices not generated

2001-10-03 Thread Casey Duncan
On Wednesday 03 October 2001 12:54 am, Shane Rowatt allegedly wrote: Zope Version: 2.4.1 on linux. When I tried to add a ZCatalog followed by finding objects to index using the default indices provided (path, summary, id, title etc), the 'path' and 'summary' indices are never generated. The

[Zope-dev] ZCatalog: path summary indices not generated

2001-10-02 Thread Shane Rowatt
Zope Version: 2.4.1 on linux. When I tried to add a ZCatalog followed by finding objects to index using the default indices provided (path, summary, id, title etc), the 'path' and 'summary' indices are never generated. The 'summary' index is always an empty string and the 'path' index is 'None'.

[Zope-dev] ZCatalog API

2001-09-30 Thread E. Seifert
Hi list, as I'm not very familiar with the internals of ZCatalog I have a question to all you API experts: Why does ZCatalog.py (under Zope 2.4.1) specify a 'addIndex' permission for a method called 'manage_delIndexes' although there is no such method? The only method I could find to delete

Re: [Zope-dev] ZCatalog API

2001-09-30 Thread Steve Alexander
E. Seifert wrote: Hi list, as I'm not very familiar with the internals of ZCatalog I have a question to all you API experts: Why does ZCatalog.py (under Zope 2.4.1) specify a 'addIndex' permission for a method called 'manage_delIndexes' although there is no such method? The only method

Re: [Zope-dev] zcatalog and versions

2001-09-27 Thread Oliver Bleutgen
Thanks for the fast reply Casey. Casey Duncan wrote: On Thursday 27 September 2001 12:48 pm, Oliver Bleutgen allegedly wrote: Hi, I'm resending this to zope-dev because on zope nobody answered, it would be very nice if someone could step up with a small hint. Can somenone briefly

[Zope-dev] ZCatalog problem: sort_on bug

2001-09-24 Thread Steve Alexander
I'm getting a strange problem with ZCatalog, using python 2.1, Zope from CVS. I get all the results I expect with this: ul dtml-in Catalog(process_step=['start','mailed']) li dtml-subject_name; -- dtml-relationship_name; - dtml-rater_name; /dtml-in /ul But, I only get one subject_name's

Re: [Zope-dev] ZCatalog problem: sort_on bug

2001-09-24 Thread Steve Alexander
Steve Alexander wrote: I'm getting a strange problem with ZCatalog, using python 2.1, Zope from CVS. I get all the results I expect with this: ul dtml-in Catalog(process_step=['start','mailed']) li dtml-subject_name; -- dtml-relationship_name; - dtml-rater_name; /dtml-in /ul

Re: [Zope-dev] ZCatalog problem: sort_on bug

2001-09-24 Thread Steve Alexander
Steve Alexander wrote: This gives partial results: dtml-in Catalog(process_step=['start','mailed'], sort_on='subject_name') ...because this returns a LazyCat instance, for which len() is broken. This gives full results: dtml-in Catalog(process_step=['start','mailed'],

Re: [Zope-dev] ZCatalog problem: PATCH

2001-09-24 Thread Steve Alexander
Steve Alexander wrote: Patch coming up soon... Patch against Catalog.py, from CVS: *** lib/python/Products/ZCatalog/Catalog.py.original --- lib/python/Products/ZCatalog/Catalog.py.patched *** *** 673,679 if (type(so) is type('') and

[Zope-dev] ZCatalog bug

2001-09-18 Thread Steve Alexander
I'm updating a site that is currently using Python 1.5.2 and Zope 2.3.something to use Python 2.1 and Zope 2.4.from_cvs. I've had a problem: most products won't initialize. They fail on an AttributeError in SearchIndex/UnTextIndex.py related to setting up the help system. This ugly patch

Re: [Zope-dev] ZCatalog out of Zope

2001-07-02 Thread Chris Withers
Paulo M. Goncalves wrote: I'm a Zope and Python newbie and I'm trying to work with Zope's ZCatalog in a Product coded in python. Can anyone give some intro or point to some links with info in this subject. Maybe have a look at the SquishSite.py file in Squishdot? The search method of the

[Zope-dev] ZCatalog out of Zope

2001-06-30 Thread Paulo M. Goncalves
Hi, I'm a Zope and Python newbie and I'm trying to work with Zope's ZCatalog in a Product coded in python. Can anyone give some intro or point to some links with info in this subject. Thanks, Paulo --- Paulo Marques

Re: [Zope-dev] ZCatalog out of Zope

2001-06-30 Thread Chris McDonough
Hi Paulo.. I can't give you any real specific advice on where to get info besides the Zope Book, but you may want to take a look at the ZCatalog.py and Catalog.py source code (in the ZCatalog product). Also, the (always forgotten) help system has documentation on the Catalog's interfaces. - C

Re: [Zope-dev] ZCatalog out of Zope

2001-06-30 Thread Rene Pijlman
On Sat, 30 Jun 2001 20:47:02 +0100, you wrote: I'm trying to work with Zope's ZCatalog in a Product coded in python. Can anyone give some intro or point to some links with info in this subject. There is a ZCatalog tutorial on http://www.zope.org/Documentation/How-To/ZCatalogTutorial/ The

Re: [Zope] Re: [Zope-dev] Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-25 Thread Chris Withers
Chris McDonough wrote: This purpose aligns well with those of the ArmoredCatalog proposal as well.. see http://dev.zope.org/Wikis/DevSite/Proposals/ArmoredCatalog . But even using such a lazy catalog awareness, you might get into trouble. Using the ZCatalog's find objects function, I

Re: [Zope-dev] Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-25 Thread abel deuring
Chris McDonough wrote: A solution might be a kind of lazy catalog awareness: Instead of mangling a new object through one or more catalogs when it is created, this object could be added to a list of objects to be cataloged later. This way, the transaction to insert a new object would

Re: [Zope] Re: [Zope-dev] Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-25 Thread Chris McDonough
Chris McDonough wrote: This purpose aligns well with those of the ArmoredCatalog proposal as well.. see http://dev.zope.org/Wikis/DevSite/Proposals/ArmoredCatalog . But even using such a lazy catalog awareness, you might get into trouble. Using the ZCatalog's find objects function,

[Zope-dev] Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-25 Thread Giovanni Maruzzelli
Hello Zopistas, we are developing a Zope 2.3.3 (py 1.5.2) application that will add, index and reindex some tens of thousands objects (Zclass that are DTMLDocument on steroids) on some twenty properties each day, while the absolute number of objects cataloged keeps growing (think at content

Re: [Zope-dev] Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-25 Thread abel deuring
Giovanni Maruzzelli wrote: Hello Zopistas, we are developing a Zope 2.3.3 (py 1.5.2) application that will add, index and reindex some tens of thousands objects (Zclass that are DTMLDocument on steroids) on some twenty properties each day, while the absolute number of objects cataloged

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-20 Thread Chris Withers
On Mon, 18 Jun 2001, Andreas Jung wrote: These are good ideas to improve the TextIndex. I already encouraged Erik to put alltogether into a Fishbowl proposal, Which I would do, if I had time. Which I will have, but not for another two weeks. :-) I'm guessing this is the point at

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-20 Thread Erik Enge
On Tue, 19 Jun 2001, Chris Withers wrote: I'm guessing this is the point at which your problems become mine? ;-) *evil laughter* Yes :-) We should write about it and publish it to the community... ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-19 Thread Rik Hoekstra
Rik Hoekstra writes: This raises the question how dependent the splitter on the paticularities of the document source - I do not really see how different splitters could be useful for one single document. This is perhaps less obvious than it appears, as you may want to use

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-19 Thread Erik Enge
On Mon, 18 Jun 2001, Andreas Jung wrote: These are good ideas to improve the TextIndex. I already encouraged Erik to put alltogether into a Fishbowl proposal, Which I would do, if I had time. Which I will have, but not for another two weeks. :-)

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-18 Thread Rik Hoekstra
Chris McDonough wrote: It just occurred to me that depending on the splitter to do positions makes it impossible to alter the splitter without reindexing the whole text index... but I think this is a reasonable tradeoff. Other opinions welcome. This raises the question how dependent

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-18 Thread Rik Hoekstra
Once you're satisfied with the implementation, would you be willing submit the module to the collector? Do you think you (or someone else for that matter) could have a look at [1] the method that returns the position in the document - positionInDoc() - to how that could be made to run

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-18 Thread R. David Murray
On Sun, 17 Jun 2001, Chris McDonough wrote: index_object, because the splitter return has all the words in order, even the dupes... as you iterate, you can mutate Is this part of the current formal Splitter Interface? If not, it needs to be if other code is going to depend on it. Oh, yeah,

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-18 Thread Andreas Jung
, June 18, 2001 11:39 AM Subject: Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited) On Sun, 17 Jun 2001, Chris McDonough wrote: index_object, because the splitter return has all the words in order, even the dupes... as you iterate, you can mutate Is this part

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-18 Thread Dieter Maurer
Rik Hoekstra writes: This raises the question how dependent the splitter on the paticularities of the document source - I do not really see how different splitters could be useful for one single document. This is perhaps less obvious than it appears, as you may want to use different

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-18 Thread Andreas Jung
]; [EMAIL PROTECTED] Sent: Monday, June 18, 2001 4:59 PM Subject: Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited) Rik Hoekstra writes: This raises the question how dependent the splitter on the paticularities of the document source - I do not really see how different

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Erik Enge
On Sat, 16 Jun 2001 [EMAIL PROTECTED] wrote: Lexis-Nexis: Sean w/2 Upton (where w/2 is within 2 words) This wouldn't be hard to make happen. I don't know if it is better to do it before of after the parsers, though. Maybe a more userfriendly alias would be best as a default?

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Erik Enge
On Fri, 15 Jun 2001, Chris McDonough wrote: Once you're satisfied with the implementation, would you be willing submit the module to the collector? Do you think you (or someone else for that matter) could have a look at [1] the method that returns the position in the document -

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Chris McDonough
It just occurred to me that depending on the splitter to do positions makes it impossible to alter the splitter without reindexing the whole text index... but I think this is a reasonable tradeoff. Other opinions welcome. On Sun, 17 Jun 2001 15:57:20 -0400 Chris McDonough [EMAIL PROTECTED]

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Chris McDonough
On Sun, 17 Jun 2001 21:05:47 +0200 (CEST) Erik Enge [EMAIL PROTECTED] wrote: On Fri, 15 Jun 2001, Chris McDonough wrote: Once you're satisfied with the implementation, would you be willing submit the module to the collector? Do you think you (or someone else for that matter) could

RE: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Dieter Maurer
[EMAIL PROTECTED] writes: A lot of folks who do power searches, say, librarians or other trained researchers, familiar with the bells and whistles of more powerful search engines, will want a simple operator for proximity, with the ability to specify proximity depth: For example:

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-16 Thread Erik Enge
On Fri, 15 Jun 2001, Chris McDonough wrote: Once you're satisfied with the implementation, would you be willing submit the module to the collector? Will do. Have you thought about how users actually are to use exact-phrase? What I'm thinking I will do here (currently I've only been testing

RE: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-16 Thread sean . upton
Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 16, 2001 2:59 AM To: Erik Enge Cc: [EMAIL PROTECTED] Subject: Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited) Erik Enge wrote: On Fri, 15 Jun 2001, Chris McDonough wrote: Once you're

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-15 Thread Erik Enge
On Thu, 14 Jun 2001, Chris McDonough wrote: Excellent! I haven't looked at it in detail, but thanks very much for contributing it! Maybe we can roll some of this work into a position-aware Text Index It is actually a TextIndex on steoroids. Remove the _proximity attribute and a couple of

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-15 Thread Erik Enge
On Thu, 14 Jun 2001, Erik Enge wrote: To be really useful I think the PossitionIndex' _proximity dictionary needs to be turned into a BTree of some sort, but apart from that I don't know what is missing. It's now using BTrees. And I renamed it to PositionIndex (thanks to Chris Withers for

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexing revisited)

2001-06-15 Thread Andreas Jung
(was: Re: [Zope-dev] ZCatalog phrase indexing revisited) On Thu, 14 Jun 2001, Erik Enge wrote: To be really useful I think the PossitionIndex' _proximity dictionary needs to be turned into a BTree of some sort, but apart from that I don't know what is missing. It's now using BTrees

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-15 Thread Chris McDonough
: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited) On Thu, 14 Jun 2001, Erik Enge wrote: To be really useful I think the PossitionIndex' _proximity dictionary needs to be turned into a BTree of some sort, but apart from that I don't know what is missing. It's now using

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-14 Thread Chris McDonough
[EMAIL PROTECTED] Cc: Oren Yosifon [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 12:45 PM Subject: Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited) On Thu, 14 Jun 2001, Erik Enge wrote: Me got a patch: URL:http://nittin.net/erik/software/PossitionIndex

[Zope-dev] ZCatalog patch for indexing larger amounts of text

2001-05-25 Thread abel deuring
Hi all, I got problems similar to those described by Erik Enge a few weeks ago with indexing a somewhat larger amount of text (~500 MB in ~194000 objects): Zope tends to eat up all available memory (640MB in my case) and swap space. The main problem seem to be that the classes Zcatalog,

[Zope-dev] ZCatalog Brains

2001-05-23 Thread Chris Withers
Hi, Is it still fair game to use the data_record_normalized_score_ attibute of ZCatalog Brain objects? If so, is it accurate and meaningful? Finally, is there any way I can do the Google-esque thing of showing the snippet of the searched etxt with the words that were found highlighted?

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phraseword1word2

2001-05-21 Thread Erik Enge
On Sat, 19 May 2001, Chris McDonough wrote: 8 words. Not characters. But actually I just looked at the source and it's not even that. It's treated essentially as an AND query, because the UnTextIndex code doesn't store any proximity information between words. ( I knew this once, but I had

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phraseword1word2

2001-05-21 Thread Chris McDonough
I've done alot of practical testing with it now, and it seems that the exact phrase query might be overrated. So far, the already-available query types have sufficed. I'll let the client to even more testing, but if they don't really need it, I can't justify spending time on it. Obviously

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phraseword1 word2

2001-05-19 Thread Erik Enge
On Fri, 18 May 2001, Chris McDonough wrote: You should be able to do this with quotes around the words, but that feature is sort of only half-wired-up at this point. [snip] Currently, quotes around word do the same thing as parens around words (word1 NEAR word2). Sigh. What does NEAR mean,

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phraseword1 word2

2001-05-19 Thread Chris McDonough
Erik Enge wrote: What does NEAR mean, then? How near is NEAR? I believe it means within 8 words in the current implementation... Is it in line for 2.4? No, unfortunately. I'm not sure when it will be on the map. This is an area where someone outside of DC sufficiently motivated to make it

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phraseword1 word2

2001-05-19 Thread Erik Enge
On Sat, 19 May 2001, Chris McDonough wrote: I believe it means within 8 words in the current implementation... So, word1 NEAR wordlongerthan8characters wouldn't come up with anything? Or is it number of characters inbetween? Is it in line for 2.4? No, unfortunately. I'm not sure when

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phraseword1 word2

2001-05-19 Thread Chris McDonough
I believe it means within 8 words in the current implementation... So, word1 NEAR wordlongerthan8characters wouldn't come up with anything? Or is it number of characters inbetween? 8 words. Not characters. But actually I just looked at the source and it's not even that. It's treated

[Zope-dev] ZCatalog/TextIndex: searching for the exact phrase word1 word2

2001-05-18 Thread Erik Enge
Hiya, it basically says it in the subject. How can I search for word1 word2 without ZCatalog/TextIndex interpreting it as word1 or/and word2? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross

Re: [Zope-dev] ZCatalog/TextIndex: searching for the exact phrase word1 word2

2001-05-18 Thread Chris McDonough
PROTECTED] Sent: Friday, May 18, 2001 12:25 PM Subject: [Zope-dev] ZCatalog/TextIndex: searching for the exact phrase word1 word2 Hiya, it basically says it in the subject. How can I search for word1 word2 without ZCatalog/TextIndex interpreting it as word1 or/and word2

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Erik Enge
On Tue, 15 May 2001, Chris McDonough wrote: I'll be curious to see the results. Hopefully you'll have better luck under 2.3.1b2. I've indexed about 410.000 objects now. A plain query with 'meta_type' and 'firstname' to searchResults takes about 3-4 seconds. Not too bad, but not that good

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Chris McDonough
Erik Enge wrote: I've indexed about 410.000 objects now. A plain query with 'meta_type' and 'firstname' to searchResults takes about 3-4 seconds. Not too bad, but not that good either. I assume meta_type is a field index and 'firstname' is a text index. I'd be curious to know how long a

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Erik Enge
On Thu, 17 May 2001, Chris McDonough wrote: I'd be curious to know how long a query that involves only a single field index takes, and how long a query that involves only a single text index takes... does each take a roughly equivalent amount of time? I might be able to check that for you

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Chris McDonough
On Thu, 17 May 2001, Chris McDonough wrote: I'd be curious to know how long a query that involves only a single field index takes, and how long a query that involves only a single text index takes... does each take a roughly equivalent amount of time? I might be able to check that for

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Chris Withers
Chris McDonough wrote: That sounds good! At least for the Catalog. Want to be a tester? ;-) I would, especially for drop-in indexes and AND keyword indexes :-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Chris McDonough
Subject: Re: [Zope-dev] ZCatalog, REQUEST, misc. Chris McDonough wrote: That sounds good! At least for the Catalog. Want to be a tester? ;-) I would, especially for drop-in indexes and AND keyword indexes :-) cheers, Chris ___ Zope

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Chris Withers
Chris McDonough wrote: Well, some revision of 2.4 alpha will ship with drop-in indexes, so using it would be wonderful. Lemme know as soon as it's in CVS and I'll see if I can get my Zope from source going on WinNT, I gave up the last tiem my need came close but Brian has solved the problem

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Erik Enge
On Thu, 17 May 2001, Chris McDonough wrote: Well, that's good, except I thought you couldn't get rid of objects? Muhahaha. I got those little bastards... :) Yes, but not with 1,000,000 objects (see lib/python/ZCatalog/tests/testCatalog.py). It would be nice to have such a report. If I

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-17 Thread Chris McDonough
Well, that's good, except I thought you couldn't get rid of objects? Muhahaha. I got those little bastards... :) That's one way to fix it, I suppose. ;-) Yes, but not with 1,000,000 objects (see lib/python/ZCatalog/tests/testCatalog.py). It would be nice to have such a report. If

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-16 Thread Erik Enge
On Tue, 15 May 2001, Chris McDonough wrote: YourCatalog.catalog_object(newobject) as opposed from inheriting from CatalogAware and relying on manage_afterAdd or calling object.index_item() manually. That's really it. Well, if you put it that way :) *removing CatalogAwareness* (it's

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Chris McDonough
I have a 1GHz Pentium with 1GB RAM and 1GB swap. After I added all the objects with a little script (that took about 12 hours), I was going to index them to the Catalog I have. (I had to uncomment the index_object method's innards in CatalogAwareness.py because of a problem I mention

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Erik Enge
Thanks for the fast reply! On Tue, 15 May 2001, Chris McDonough wrote: Have you read http://www.zope.org/Members/mcdonc/HowTos/UpgradeToNewCatalog/index_html ? I suspect there will be improvement. Surely there will be improvement, but not of factors two or three, or more? And, I can do the

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Chris Withers
Erik Enge wrote: This is Zope 2.3.1b1, by the way. I'm changing to Zope 2.3.2b2 as we speak, but I don't think it will improve performance that much. Why nto go for 2.3.2 final? IIRC, 2.3.2b2 had some nasty ZCatalog bugs in it... cheers, Chris

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Chris McDonough
Thanks for the fast reply! On Tue, 15 May 2001, Chris McDonough wrote: Have you read http://www.zope.org/Members/mcdonc/HowTos/UpgradeToNewCatalog/index_html ? I suspect there will be improvement. Surely there will be improvement, but not of factors two or three, or more? Probably

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Erik Enge
On Tue, 15 May 2001, Chris McDonough wrote: Probably not much difference on bare bulk indexing speed, but I'll bet that it finishes this time. ;-) We'll see :) I'd either make my own CatalogAware-alike mixin class that did things a bit differently than CatalogAware (perhaps didn't index

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Chris McDonough
I'd either make my own CatalogAware-alike mixin class that did things a bit differently than CatalogAware (perhaps didn't index on add, and didn't unindex on delete), or I'd just manage the whole lot completely manually. (How often will each of these million objects change?) Not often.

Re: [Zope-dev] ZCatalog, REQUEST, misc.

2001-05-15 Thread Chris McDonough
Why CatalogAware? You do know that the only thing CatalogAware does is add/remove/reindex objects in one particular Catalog when they're added, removed, or changed? Yes, and this is all I need. Where is the overhead with CatalogAware objects, then? Any time a parent object is deleted

RE: [Zope-dev] ZCatalog features

2001-04-30 Thread Adrian Hungate
Title: RE: [Zope-dev] ZCatalog features Sorry... a user came into the office as I was writing that email and completely broke my train of though :( g... What I meant to say was, I think that access to the Union and Intersection operators would be a very useful feature as long

Re: [Zope-dev] ZCatalog features

2001-04-30 Thread Chris McDonough
RE: [Zope-dev] ZCatalog features What I meant to say was, I think that access to the Union and Intersection operators would be a very useful feature as long as it would not involve a change to any other documented APIs etc... OK, good this is what's specified in the fishbowl proposal

Re: [Zope-dev] ZCatalog comments

2001-04-30 Thread R. David Murray
On Fri, 27 Apr 2001, Chris Withers wrote: Wildcards? Hmmm... that's enticing, where and how will they be supported? Wildcards are supported (and have been for a while) in text index searches if you specify a globbing vocabulary at Catalog creation time. --RDM

[Zope-dev] ZCatalog features

2001-04-28 Thread Morten W. Petersen
Hia guys, A couple of comments and questions about the ZCatalog: Is it possible to pass an argument to the catalog so that returned brains would instead be actual objects? Given that we have to manually join search results, because ZCatalog doesn't support ORs etc (for FieldIndexes), wouldn't

Re: [Zope-dev] ZCatalog features

2001-04-28 Thread Chris McDonough
Morten W. Petersen wrote: Hia guys, A couple of comments and questions about the ZCatalog: Is it possible to pass an argument to the catalog so that returned brains would instead be actual objects? Not currentl, although the new brain objects have a method 'getObject' that makes

[Zope-dev] ZCatalog comments

2001-04-27 Thread Chris Withers
Michel Pelletier wrote: +There are some rules to consider when querying this method: + +- an empty query mapping (or a bogus REQUEST) returns all + items in the +catalog. Is it only me that finds this really irritating? Surely a blank query

Re: [Zope-dev] ZCatalog comments

2001-04-27 Thread Chris McDonough
Michel Pelletier wrote: +There are some rules to consider when querying this method: + +- an empty query mapping (or a bogus REQUEST) returns all + items in the +catalog. Is it only me that finds this really irritating? Surely a blank

Re: [Zope-dev] ZCatalog comments

2001-04-27 Thread Dieter Maurer
Chris Withers writes: +- an empty query mapping (or a bogus REQUEST) returns all + items in the +catalog. Is it only me that finds this really irritating? Surely a blank query mapping should return nothing, not everything? (at the least it'd

Re: [Zope-dev] ZCatalog waaaagh!

2001-04-23 Thread Chris Withers
Chris McDonough wrote: In the meantime, if you're desperate, here's a temporary fix... replace the items method of the UnTextIndex class in UnTextIndex.py. The current method looks something like this: def items(self): reurn self._index.items() change it to: def items(self):

Re: [Zope-dev] ZCatalog waaaagh!: The Error

2001-04-23 Thread Chris Withers
d'oh! Error type: strongTypeError/strongbr Error value: strongunsubscriptable object/strong Traceback (innermost last): File E:\Zope\2379A4~1.1\lib\python\ZPublisher\Publish.py, line 223, in publish_module File E:\Zope\2379A4~1.1\lib\python\ZPublisher\Publish.py, line 187, in

Re: [Zope-dev] ZCatalog waaaagh!: The Error

2001-04-23 Thread Chris McDonough
Can you give me something that reproduces this? - Original Message - From: Chris Withers [EMAIL PROTECTED] To: Chris McDonough [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, April 23, 2001 8:32 AM Subject: Re: [Zope-dev] ZCatalog wgh!: The Error d'oh! Error type

Re: [Zope-dev] ZCatalog waaaagh!

2001-04-23 Thread Chris McDonough
Sorry, I meant UnIndex.py! Doh! There is a more comprehensive fix checked in to 2.3.2b2. In the meantime, if you're desperate, here's a temporary fix... replace the items method of the UnTextIndex class in UnTextIndex.py. The current method looks something like this: def

Re: [Zope-dev] ZCatalog waaaagh!

2001-04-19 Thread Chris Withers
Chris McDonough wrote: I know why this is, but I'm not going to fix it tonight... sigh. I need to go cry on Jim's shoulder for a bit before I check a proper fix in. I'm guessing the fix for this is in 2.3.2b1? cheers, Chris ___ Zope-Dev

[Zope-dev] ZCatalog catalogable types and nonproducts

2001-04-18 Thread Karl Anderson
I have a Python Product with several subobjects which are not products in their own right. I'm trying to make these subobjects selectable in the Find Objects tab of a ZCatalog, so I can restrict the cataloged objects to these types. Whats the right way to do this? Since they're not addable

[Zope-dev] ZCatalog waaaagh!

2001-04-12 Thread Chris Withers
Hi Chris (and anyone else who can help), Hopefully you may be able to save my sanity. Querying a ZCatalog(2.3.1, running update thing made no difference), I'm getting the following error: type: exceptions.TypeError value: len() of unsized object sr = self.searchResults(kw) File

Re: [Zope-dev] ZCatalog waaaagh!

2001-04-12 Thread Chris McDonough
What's the query? - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, April 12, 2001 12:13 PM Subject: [Zope-dev] ZCatalog wgh! Hi Chris (and anyone else who can help),

Re: [Zope-dev] ZCatalog waaaagh!

2001-04-12 Thread Chris McDonough
Ugh. I know why this is. Ugh. Ugh Ugh. Give me an hour. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, April 12, 2001 12:13 PM Subject: [Zope-dev] ZCatalog wgh!

[Zope-dev] ZCatalog bug?

2001-04-08 Thread Adam Chlipala
I have just installed Zope 2.3.1 and the latest CMF. When trying to publish some CMF resource after submitting a form to edit the site config, I get a TypeError: expected integer key. The stack traceback is included below. A more experienced user has said that this looks like it could be

[Zope-dev] ZCatalog bug?

2001-04-08 Thread Tres Seaver
Adam Chlipala [EMAIL PROTECTED] wrote: I have just installed Zope 2.3.1 and the latest CMF. When trying to publish some CMF resource after submitting a form to edit the site config, I get a TypeError: expected integer key. The stack traceback is included below. A more experienced user has

[Zope-dev] ZCatalog FieldIndex Bug (Fix?)

2001-04-06 Thread Chris Withers
Chris Withers wrote: Correct me if I'm wrong, but if I query a field index with an empty string, I expect to get returned all catalogued objects where that attribute's value _is_ the empty string. Anyway, this happens most of the time and I wish it happened all the time. Basically, the

Re: [Zope-dev] ZCatalog FieldIndex Bug (Fix?)

2001-04-06 Thread Chris McDonough
t, however! ;-) - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 6:41 PM Subject: [Zope-dev] ZCatalog FieldIndex Bug (Fix?) Chris Withers wrote: Correct me if I'm wrong

Re: [Zope-dev] ZCatalog FieldIndex Bug (Fix?)

2001-04-06 Thread Chris Withers
Chris McDonough wrote: You can run them by doing "python testCatalog.py -p"... some will fail due to not having various files on the filesystem, but most should pass. Ah... this doesn't work if you have Python 2.0 installed as your default python and a Zope binary release ;-) Zope needs

<    1   2   3   4   >