Re: [Zope] ZCatalog queries performance

2015-05-19 Thread Sebastian Tänzer
Thanks, this answered all of my questions :-) Best, Sebastian > Am 19.05.2015 um 12:50 schrieb Tres Seaver : > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >> On 05/19/2015 04:54 AM, Sebastian Tänzer wrote: >> >> Let’s say I want to display an accordion with all events of a month >> d

Re: [Zope] ZCatalog queries performance

2015-05-19 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/19/2015 04:54 AM, Sebastian Tänzer wrote: > Let’s say I want to display an accordion with all events of a month > displaying quite a lot of data about the event (30-50 events on one > page, collapsible jQuery accordion). At the moment I get th

Re: [Zope] ZCatalog queries performance

2015-05-19 Thread Sebastian Tänzer
Thanks for the feedback and help, Tres. Let’s say I want to display an accordion with all events of a month displaying quite a lot of data about the event (30-50 events on one page, collapsible jQuery accordion). At the moment I get the results and put the objects into the result set via unres

Re: [Zope] ZCatalog queries performance

2015-05-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/17/2015 11:09 AM, Sebastian Tänzer wrote: > What are the alternatives? The most performant implementation would be to generate the URL for the image using a fixed suffix (relative to the result object). E.g., :: T

Re: [Zope] ZCatalog : Searching Multiple Indexes : Returning One Result

2008-07-09 Thread Tom Von Lahndorff
If I understand correctly, this seems like searching for multiple values in one index. What I'm looking to do is search for one value in multiple indexes... and get back one result even if there are True hits in more than one index. On Mon, Jul 7, 2008 at 4:00 PM, Jonathan <[EMAIL PROTECTED]> wrot

Re: [zope] ZCatalog question

2008-07-08 Thread Jonathan
- Original Message - From: "Jonathan Salazar Santos" <[EMAIL PROTECTED]> To: Sent: Tuesday, July 08, 2008 5:17 PM Subject: [zope] ZCatalog question Hi everybody I have a method that creates a Files and DTML Documents but I need to Index those news items to a ZCatalog when they are

Re: [Zope] ZCatalog : Searching Multiple Indexes : Returning One Result

2008-07-07 Thread Jonathan
- Original Message - From: "Tom Von Lahndorff" <[EMAIL PROTECTED]> To: "zope list user" Sent: Monday, July 07, 2008 3:42 PM Subject: [Zope] ZCatalog : Searching Multiple Indexes : Returning One Result Hi, I have a catalog called "catalog" that contains a bunch of cataloged items. I

Re: [Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Andreas Jung
--On 25. Februar 2008 16:45:51 +0100 Stefano Guglia <[EMAIL PROTECTED]> wrote: That's not the primary supported usecase of ZCatalog. Perhaps will help you any further. -aj anyway, I do have persistent objects in my plone product,

Re: [Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Stefano Guglia
> > That's not the primary supported usecase of ZCatalog. Perhaps > > > > will help you any further. > > -aj anyway, I do have persistent objects in my plone product, no matter on how I originated them.. the problem is that I have no idea

Re: [Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Andreas Jung
--On 25. Februar 2008 12:00:24 +0100 Stefano Guglia <[EMAIL PROTECTED]> wrote: You are trying to *index* rows returned from a ZSQL operation. This make no sense. As said: ZCatalog is designed to deal with persistent objects (the things you see within your ZODB hierarchy within the ZMI). A

Re: [Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Stefano Guglia
> > You are trying to *index* rows returned from a ZSQL operation. > This make no sense. As said: ZCatalog is designed to deal with > persistent objects (the things you see within your ZODB hierarchy within > the ZMI). And why do you want to index stuff within Zope if you can perform > the sear

Re: [Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Andreas Jung
--On 25. Februar 2008 10:09:00 +0100 Stefano Guglia <[EMAIL PROTECTED]> wrote: Hello everybody.. I have to index some data from a mysql query recordset and all works OK but..I added a keywordIndex to store (with the same url) multiple values related to the above recordset. It seems I cannot

Re: [Zope] ZCatalog len problem (resolved)

2007-03-26 Thread Jonathan
- Original Message - From: "Andreas Jung" <[EMAIL PROTECTED]> To: "Jonathan" <[EMAIL PROTECTED]>; Sent: Saturday, March 24, 2007 10:43 AM Subject: Re: [Zope] ZCatalog len problem --On 24. März 2007 10:16:46 -0400 Jonathan <[EMAIL PROTECTED]> wro

Re: [Zope] ZCatalog len problem

2007-03-24 Thread Andreas Jung
--On 24. März 2007 11:03:58 -0400 Jonathan <[EMAIL PROTECTED]> wrote: I don't think it is an indexing problem as the indexes are reporting the correct number of entries. It is just the _length() method of the catalog that seems to be the problem (but I have n idea how to fix it!) Of co

Re: [Zope] ZCatalog len problem

2007-03-24 Thread Jonathan
- Original Message - From: "Andreas Jung" <[EMAIL PROTECTED]> To: "Jonathan" <[EMAIL PROTECTED]>; Sent: Saturday, March 24, 2007 10:43 AM Subject: Re: [Zope] ZCatalog len problem --On 24. März 2007 10:16:46 -0400 Jonathan <[EMAIL PROTECTED]> wro

Re: [Zope] ZCatalog len problem

2007-03-24 Thread Andreas Jung
--On 24. März 2007 10:16:46 -0400 Jonathan <[EMAIL PROTECTED]> wrote: I have a ZCatalog and in the ZMI 'Catalog' tab it reports: Returns: len(sRes)= 1820 cnt= 1842 The result remains the same after reindexing the whole catalog? It looks like the __len__ method in Catalog.py is not re

Re: [Zope] zcatalog strange behavior

2006-06-26 Thread bard stéphane
thank's dieter ! In fact i lose the tip that the Zcatalog should have the id "Catalog" so the object could be automatically cataloged at creation. thank's a lot Dieter Maurer a écrit : bard stéphane wrote at 2006-6-24 19:38 +0200: Today i try to create another zclass on the same zope server

Re: [Zope] zcatalog strange behavior

2006-06-25 Thread Dieter Maurer
bard stéphane wrote at 2006-6-24 19:38 +0200: >Today i try to create another zclass on the same zope server (2.6) >zclass with zobject,zcatalogaware inheritance >and the zcatalogawareness don't work any more. >And I don't know why !! > >So each time a property is modified i should "ZcatalogAwa

Re: [Zope] ZCatalog Strategy

2006-03-24 Thread Dieter Maurer
Mark Gibson wrote at 2006-3-22 19:28 -0700: >I'm struggling to weigh the cost of getObject() vs. the cost of adding >more metadata to the catalog. I'll explain my situation. > >I have 10,000 widgets cataloged. I do a path and date query that >returns me maybe 12 of these. Then I have a choice

Re: [Zope] ZCatalog Strategy

2006-03-23 Thread Chris Withers
Mark Gibson wrote: Does the cost of calling getObject() for a dozen objects justify creating a new metadata field? No. More generally how does a large amount of metadata in the catalog affect performance of queries? Badly ;-) The wisdom of those more knowledgeable than me would be appreci

Re: [Zope] ZCatalog Strategy

2006-03-22 Thread Jonathan
One factor is the amount of ram that you have. If you have enough ram to fit the entire catalog (with indexes) then your search time is very fast. I would err on the side of less meta-data. We currently run about 1 million entries in a zcatalog with very little meta-data and then use restric

Re: [Zope] ZCatalog: searching where on index == another index

2005-10-21 Thread Dieter Maurer
Etienne Labuschagne wrote at 2005-10-21 13:00 +0200: >Is there a way to search for all the records where one indexed field >equals another indexed field? > >Equivalent SQL query would be: > >SELECT * FROM table WHERE field1 = field2 If the index has only a few different values, enumerating them ma

Re: [Zope] ZCatalog: searching where on index == another index

2005-10-21 Thread Andreas Jung
--On 21. Oktober 2005 13:00:35 +0200 Etienne Labuschagne <[EMAIL PROTECTED]> wrote: Hi all, Is there a way to search for all the records where one indexed field equals another indexed field? no. -aj pgpT5FL2z86QW.pgp Description: PGP signature _

Re: [Zope] ZCatalog and custom Product

2005-04-20 Thread Chris Withers
Milos Prudek wrote: The above code catalogs the instance into Catalog_A. Okay, but self.manage_editCataloger("Catalog_A") self.index_object() self.manage_editCataloger("Catalog_B") self.index_object() self.manage_editCataloger("Catalog_C") self.index_object() ... the abo

Re: [Zope] ZCatalog and custom Product

2005-04-20 Thread Milos Prudek
Milos Prudek wrote: > Hi, > > I need to convert a ZClass cataloged in multiple ZCatalogs into a > Product. I know how to create a Product. But I have trouble > understanding how to create a proper ZCatalog and manage it in a Product. To answer myself, simply follow Garito's advice of 10.6.2004 in m

Re: [Zope] ZCatalog uniqueValuesFor

2001-01-12 Thread Dieter Maurer
aZaZel writes: > ... "uniqueValuesFor" not updated after modification ... Almost surely a small bug in ZCatalog. A field index is implemented as a mapping from values to lists of documents. "uniqueValuesFor" returns this mapping's "keys()". When the field value of a document changes, this docu

Re: [Zope] Zcatalog with Word Documents

2001-01-12 Thread Tim Cook
Nuno Goncalves wrote: > > Hi there ! > Is it possible to catalog the content of a word document with Zcatalog ? > If so i would apreciate that someone could tell me how !! The list archives are a great resource: http://zope.nipltd.com/public/lists/zope-archive.nsf/Main?SearchView=++&Query=MSWord

RE: [Zope] ZCatalog and 'fuzzy logic'

2001-01-09 Thread sean . upton
My understanding is that part of the problem is that sorting a dataset based upon regular expression (doesn't matter what algorithm you use) creates a rather large tree of possibilities that is largely impractical to sort, at least not without a lot of overhead. My compromise for the searches t

Re: [Zope] ZCatalog raises index out of range exception error

2000-12-19 Thread Aleksander Salwa
On Tue, 19 Dec 2000, Marcin Kasperski wrote: > Partial solution: at something like 2:00 AM delete your SiteRoot rule, > reindex with ZCatalog and create this rule again. Searching works > (although I needed to edit the paths found a bit in the form responsilbe > for search results presentation).

Re: [Zope] ZCatalog raises index out of range exception error

2000-12-19 Thread Marcin Kasperski
> > I believe I saw this error when > > trying to use the Catalog in a SiteRoot-ed folder... > > Me too :-( > And me too. The most irritating Zope bug for me. > > No solution, sorry ;) > > :-( > Partial solution: at something like 2:00 AM delete your SiteRoot rule, reindex with ZCatalog an

Re: [Zope] ZCatalog raises index out of range exception error

2000-12-19 Thread Stephane Bortzmeyer
On Saturday 16 December 2000, at 19 h 21, the keyboard of "Stefan H. Holek" <[EMAIL PROTECTED]> wrote: > Do you have a SiteRoot-ed environment? I do. > I believe I saw this error when > trying to use the Catalog in a SiteRoot-ed folder... Me too :-( > No solution, sorry ;) :-( _

Re: [Zope] ZCatalog raises index out of range exception error

2000-12-17 Thread Dieter Maurer
Stefan H. Holek writes: > Do you have a SiteRoot-ed environment? I believe I saw this error when > trying to use the Catalog in a SiteRoot-ed folder... > > No solution, sorry ;) We use the Catalog together with a SiteRoot without problems. I remove the host part of the URL before I index

Re: [Zope] ZCatalog raises index out of range exception error

2000-12-16 Thread Stefan H. Holek
On Fri, 15 Dec 2000, Martin Winkler wrote: > On a client's server I created a ZCatalog, but when using "Find Items to > ZCatalog" and clicking on "Find" in the form, Zope raises the "list index > out of range" error shown in detail at the end of this e-mail. Then I took > the whole Data.fs, pu

Re: [Zope] ZCatalog: Query Syntax

2000-11-30 Thread Chris Withers
Chris McDonough wrote: > > The place to start might be to actually help write some documentation. > There is a docs process description at > http://dev.zope.org/Wikis/DevSite/Projects/DocumentationProcess/Documentatio > nGuide . This should at least give you an idea of how to proceed. Doug, If

Re: [Zope] ZCatalog: Query Syntax

2000-11-29 Thread Chris McDonough
;Doug Morse" <[EMAIL PROTECTED]> To: "Chris Withers" <[EMAIL PROTECTED]> Cc: "Andy McKay" <[EMAIL PROTECTED]>; "Dieter Maurer" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 29, 2000 9:38 PM Subject: Re: [Zope] ZCatal

Re: [Zope] ZCatalog: Query Syntax

2000-11-29 Thread Doug Morse
Chris, I also had great difficulty in finding any relevant documentation... (re: specifics regarding text and field searches against a ZCatalog)... So, it sounds like we should (a) make a feature request and (b) make a documentation request. I'm more than happy to write up and submit such reque

Re: [Zope] ZCatalog and dates

2000-11-29 Thread Dieter Maurer
James Sintz writes: > I have a ZCatalog set up to index a date field and a title field. > > If I do a search for both meta_type of "news" a date of 2000/11/16 in the > goLiveDate field the results page returns "There was no data matching this > Catalog query" Zope uses "DateTime" obj

Re: [Zope] ZCatalog: Query Syntax

2000-11-29 Thread Chris Withers
Andy McKay wrote: > > > I am curious: Do others think this feature might be worth > > adding to the ZCatalog? If so, perhaps it should work its > > way into a proper feature request... > > Yes definitely. Well, where is the query syntax for ZCatalog actually documented? It'd be great if it wa

Re: [Zope] ZCatalog: How to request boolean NOT searches?

2000-11-28 Thread Andy McKay
> I am curious: Do others think this feature might be worth > adding to the ZCatalog? If so, perhaps it should work its > way into a proper feature request... Yes definitely. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listi

Re: [Zope] ZCatalog: How to request boolean NOT searches?

2000-11-28 Thread Doug Morse
Dieter, > Doug Morse writes: > > ... negating a ZCatalog index lookup ... > > Only ZCatalog text indexes support a restricted form of negation. > Keyword and field indexes do not. > Text indexes support only "and not": > e.g. "Zope and not databases". > Free standing "not" or combined with "or"

Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen
> The problem is that one of your databases doesn't define the commit_sub() > and abort_sub() methods on the DB class it exposes. You don't say which > SQL > database you're using, but this happened to me on a consulting project > with > ZOracleDA. A solution is to add the following methods to t

Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Chris McDonough
letier" <[EMAIL PROTECTED]> To: "Oliver Bleutgen" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, November 28, 2000 6:12 PM Subject: Re: [Zope] ZCatalog and LoginManager - be aware. > Oliver Bleutgen wrote: > > > > Hi, > > > > I

Re: [Zope] ZCatalog: How to request boolean NOT searches?

2000-11-28 Thread Dieter Maurer
Doug Morse writes: > ... negating a ZCatalog index lookup ... Only ZCatalog text indexes support a restricted form of negation. Keyword and field indexes do not. Text indexes support only "and not": e.g. "Zope and not databases". Free standing "not" or combined with "or" (rather than "and") is n

Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen
> Oliver Bleutgen wrote: >> I fiddled around somewhat and discovered that disabling >> subtransactions in ZCatalog does help (required for using >> ZSQL Methods and ZCatalog in the same transaction). > Yeah, that sux. I think this is a known limitation. I'm not sure. It is, unfortunately this

Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Michel Pelletier
Oliver Bleutgen wrote: > > Hi, > > I just wanted to mention a IMO bad pitfall when using ZCatalog, for > the sake of sparing others some time. > > I'm running Zope 2.2.2 with LoginManager with SQL in a subfolder and was getting > the following error when trying to find dtml-documents into ZCat

Re: [Zope] ZCatalog and dates

2000-11-28 Thread Uros Midic
> If I do a search for both meta_type of "news" a date of 2000/11/16 in the > goLiveDate field the results page returns "There was no data matching this > Catalog query". Yet when I do a search for the meta_type of "news" alone I > see that indeed the Catalog contains 2 entries with 2000/11/16 in

RE: [Zope] ZCatalog and dates

2000-11-28 Thread James Sintz
ginal Message- > From: Andy McKay [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, November 28, 2000 3:10 PM > To: James Sintz; [EMAIL PROTECTED] > Subject: Re: [Zope] ZCatalog and dates > > Are your dates actually of type date or string? If they are dates make > sure > y

Re: [Zope] ZCatalog and dates

2000-11-28 Thread Andy McKay
Are your dates actually of type date or string? If they are dates make sure your date index is a keyword index and that the input is also of type date. -- Andy McKay, Developer. ActiveState. - Original Message - From: "James Sintz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tue

Re: [Zope] ZCatalog: setting default to AND (not OR).

2000-11-23 Thread Andy McKay
in Canada :) -- Andy McKay, Developer. ActiveState. - Original Message - From: "The Doctor What" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 22, 2000 8:12 PM Subject: Re: [Zope] ZCatalog: setting default to AND (not OR). > I'm sorry

Re: [Zope] ZCatalog: setting default to AND (not OR).

2000-11-22 Thread The Doctor What
I'm sorry. I seem to have not explained myself very well. I want ZCatalog to use AND by default. I think the extended behaviour, being able to AND and OR keywords together is fine. I'm only concerned with the default behaviour (with *no* OR or AND keywords). When I first used zope.org's searc

Re: [Zope] ZCatalog: setting default to AND (not OR).

2000-11-22 Thread Andy McKay
add in an and between terms eg: foo and bar -- Andy McKay, Developer. ActiveState. - Original Message - From: "The Doctor What" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 22, 2000 2:36 PM Subject: [Zope] ZCatalog: setting default to AND (not OR). > All goo

Re: [Zope] ZCatalog and random key error

2000-11-10 Thread Chris McDonough
You will still see random key errors until Chris Petrilli puts his ZCatalog fixes into the 2.2 branch (hopefully 2.2.3). - Original Message - From: "Bak @ kedai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 09, 2000 11:56 PM Subject: [Zope] ZCatalog and random key

Re: [Zope] ZCatalog and random key error

2000-11-10 Thread Erik Enge
On Fri, 10 Nov 2000, Bak @ kedai wrote: > also, will iterating through catalog index faster than iterating through > ..say.. objectItems('meta-type')? Much faster. Much, much faster. I tried an objectValues() on 2000 items (in 3 different folder-type objects) and did various calculations on e

Re: [Zope] ZCatalog scalability?

2000-11-08 Thread Wolfgang Strobl
On 8 Nov 2000, 15:54 Júlio Dinis Silva wrote: > Does anyone has a Catalog with more than 1500 items catalogued? > If yes does anyone can do searches to this Catalog in a > resonable time without freezing ZServer until it ends? I did some experiments over the weekend, for example cataloging abo

Re: [Zope] ZCatalog scalability?

2000-11-08 Thread Andy McKay
Yes. Some queries especially ones with wildcards can take a lot more juice than others. Try and keep your metadata small and your queries simple. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Júlio Dinis Silva" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: We

Re: [Zope] ZCatalog question. boolean and wildcards.

2000-10-14 Thread Dieter Maurer
Hannes Grund writes: > When mixing boolean operators and wildcards '*' in queries within a Textindex > the 'AND' operator is replaced by 'OR'. > Also, the possibility of constructing nested terms using brackets seems > to be not supported (contrary to the chapter 'Searching and indexing' fro

Re: [Zope] ZCatalog problem!

2000-09-03 Thread Kapil Thangavelu
Kevin Howe wrote: > > Hi, I have a Folderish class (FClass) and I am trying to write it so that > when an FClass object is added in ZOPE, it will automatically create a > ZCatalog object inside itself. I attempted to do this in the manner I had > successfully done this before with other object ty

Re: [Zope] ZCatalog in 2.2.x

2000-09-03 Thread Sebastien Yapo
ntering them), recatalog, and see if the problem goes away? We > > > haven't had any colluding reports of something like this, and I'm using > > > the 2.2.1 catalog with textindexes successfully on a customer project. > > > > > > > -Origina

Re: [Zope] ZCatalog in 2.2.x

2000-09-02 Thread Terry Kerr
e this, and I'm using > > > the 2.2.1 catalog with textindexes successfully on a customer project. > > > > > > > -Original Message- > > > > From: Terry Kerr [mailto:[EMAIL PROTECTED]] > > > > Sent: Wednesday, August 30, 2000 3:27 AM >

Re: [Zope] ZCatalog in 2.2.x

2000-09-02 Thread Chris McDonough
> > haven't had any colluding reports of something like this, and I'm using > > the 2.2.1 catalog with textindexes successfully on a customer project. > > > > > -Original Message- > > > From: Terry Kerr [mailto:[EMAIL PROTECTED]] > > >

RE: [Zope] ZCatalog Queries...

2000-09-01 Thread Albert Langer
[Kapil] I think that zcatalog is great for simple property indexing but it has some signifigant drawbacks for its most common use, which is mass text indexing, and searching. As object an catalog, its fine, But i think as a mass text indexing/searching machinery it bites. I think Zope could really

Re: [Zope] ZCatalog in 2.2.x

2000-09-01 Thread Dieter Maurer
Terry Kerr writes: > only field searches yield non empty query results > The product I am working on is Etailer. I downloaded Etailer and looked into the problem. Indeed, I could reproduce your observation. I analysed the problem and now do understand what went wrong here in my insta

Re: [Zope] ZCatalog in 2.2.x

2000-09-01 Thread Terry Kerr
From: Terry Kerr [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, August 30, 2000 3:27 AM > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: Re: [Zope] ZCatalog in 2.2.x > > > > > > I am not searching from a form in that sense...I am talking > > a

Re: [Zope] ZCatalog and foreign characters

2000-08-31 Thread Aleksander Salwa
> > For now, I made hack in Spliter.c - I wrote my own replacements for > isalpha and isalnum functions. > Oops, my solution doesn't work. Probably it needs more hacking in python code So, how to do it under FreeBSD ? [EMAIL PROTECTED] /--\ | `long lon

Re: [Zope] ZCatalog and foreign characters

2000-08-31 Thread Aleksander Salwa
On Wed, 30 Aug 2000, Radim Gelner wrote: > On Tue, Aug 29, 2000 at 11:57:08PM +0200, Dieter Maurer wrote: > > > > If you work with a fixed locale, you can use the "-L" switch > > to inform Zope about your locale. Then the splitter should > > work correctly (for your locale). > > Yes, that help

RE: [Zope] ZCatalog Queries...

2000-08-31 Thread Andy Dawkins
> > > > > It's be nice if ZCatalog had a good general purpose > > > > interface, and was a > > > > bit more robust. > > > > (the BTree implementation which has been mentioned a few > > times springs > > > > to mind here ;-) > > > > > > Can you be more specific? > > > > Andy can fill you in on the

Re: [Zope] ZCatalog Queries...

2000-08-30 Thread Kapil Thangavelu
I saw this email with some interest since i had an offlist conversation with some of the people at nipltd regarding a mailing list project, but i chose to do it outside of zope because of lingering doubts about zope's suitability(more ZCatalog) for the task. Chris Withers wrote: > > Chris McDon

Re: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Dieter Maurer
Terry Kerr writes: > But now when I instantiate my product in 2.2.0 or 2.2.1, > searching only works when I search using a field index. Searching using > a textindex always results in an empty result I use ZCatalog text indexes under 2.2.1b1 without problems (with a globbing lexicon!

RE: [Zope] ZCatalog Queries...

2000-08-30 Thread Chris McDonough
> > > It's be nice if ZCatalog had a good general purpose > > > interface, and was a > > > bit more robust. > > > (the BTree implementation which has been mentioned a few > times springs > > > to mind here ;-) > > > > Can you be more specific? > > Andy can fill you in on the specifics. OK...

RE: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Chris McDonough
> It's be nice if ZCatalog had a good general purpose > interface, and was a > bit more robust. > (the BTree implementation which has been mentioned a few times springs > to mind here ;-) Can you be more specific? What's insufficient about the current implementation? __

RE: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Chris McDonough
er project. > -Original Message- > From: Terry Kerr [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 30, 2000 3:27 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [Zope] ZCatalog in 2.2.x > > > I am not searching from a form in that sense...I am talking >

Re: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Chris Withers
Terry Kerr wrote: > ZCatalog seems very volatile to me! Every time I have upgraded way back > from zope2.1.3, something in zcatalog has changed and boken my product. > So far I have managed to find fixes, but this one has got me baffled!! Can I just say a big "me too!" here. At the EuroZope mee

Re: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Terry Kerr
I am not searching from a form in that sense...I am talking about at the python level. I have self.searchResults({'description':'blah'}) where description is meta data in the catalog and a textindex and 'blah' is in the Vocabulary. This previously worked in zope2.1.6. Now in 2.2.0 and 2.2.1 it

Re: [Zope] ZCatalog and foreign characters

2000-08-29 Thread Radim Gelner
On Tue, Aug 29, 2000 at 11:57:08PM +0200, Dieter Maurer wrote: > > If you work with a fixed locale, you can use the "-L" switch > to inform Zope about your locale. Then the splitter should > work correctly (for your locale). Yes, that helped. I've called Zope with -L cs_CZ switch, rebuilt the ca

Re: [Zope] ZCatalog in 2.2.x

2000-08-29 Thread pja
Terry Kerr <[EMAIL PROTECTED]> said: > Hi, > > I have a python product which uses a ZCatalog and CatalogAware > products. The catalog has a number of Field and TextIndex indexes. > Search the ZCatalog has worked fine when my product is instantiated in > 2.1.6. But now when I instantiate my pr

Re: [Zope] ZCatalog and foreign characters

2000-08-29 Thread Dieter Maurer
Radim Gelner writes: > is it possible to make ZCatalog work correctly with words containing > characters other then those given in ISO-8859-1. > > Now, it reports "no found" for all such queries even when these words > are present inside the documents on site. I have made a very crude patch

Re: [Zope] ZCatalog and foreign characters

2000-08-29 Thread Aleksander Salwa
On Tue, 29 Aug 2000, Radim Gelner wrote: > is it possible to make ZCatalog work correctly with words containing > characters other then those given in ISO-8859-1. > Yes, I did it very simply. You have to patch file lib/python/SearchIndex/Splitter.c very slightly. Just add line: #include some

Re: [Zope] ZCatalog - OR'ing on different colums (indices)

2000-08-25 Thread R. David Murray
On Fri, 25 Aug 2000, Aleksander Salwa wrote: > Is there any better method of OR'ing on differend indices in quering > ZCatalog, then the method described in 'Advanced ZCatalog Searching' Ah, my solution obviously only works if all your fields are text indexes... --RDM _

Re: [Zope] ZCatalog - OR'ing on different colums (indices)

2000-08-25 Thread R. David Murray
On Fri, 25 Aug 2000, Aleksander Salwa wrote: > Is there any better method of OR'ing on differend indices in quering > ZCatalog, then the method described in 'Advanced ZCatalog Searching' > How-To: One way that works well but only works if you always do the same type of search (which it sounds lik

Re: [Zope] zCatalog and subobjects

2000-08-17 Thread Chris McDonough
ZCatalog doesn't do well on hierarchical searches like this. The way you're doing it (without some sort of change to your objects' structures) is pretty much the only way. There's a "ZTopics" product floating around that is supposed to provide functionality like this, but 1) I don't know if it's

Re: [Zope] ZCatalog key error

2000-08-16 Thread Chris McDonough
Yeah, it's running 2.2.1b1 and it's still hosed. :-( When Ethan gets back from LinuxWorld, I'm going to try to have him update to the latest CVS and see if we can pin the problem down. I added logging code to the catalog that was *supposed* to make it easier to track down why these keyerrors we

Re: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread R. David Murray
On Mon, 14 Aug 2000, Jimmie Houchin wrote: > I may be clueless and out of my league here and I haven't read the > sources so I don't know... Well enough of a disclaimer. :) I *have* read the ZCatalog/SearchIndex sources, but I don't understand this part of it yet (or really that much of it at all

Re: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread Jimmie Houchin
Hello, I may be clueless and out of my league here and I haven't read the sources so I don't know... Well enough of a disclaimer. :) Is there anything in there which can provide the seek or byte position of the hit within text object? If so, it shouldn't be too difficult to read X bytes before a

Re: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread Jimmie Houchin
Hello, I may be clueless and out of my league here and I haven't read the sources so I don't know... Well enough of a disclaimer. :) Is there anything in there which can provide the seek or byte position of the hit within text object? If so, it shouldn't be too difficult to read X bytes before a

RE: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread Jean Jordaan
Hi Toby > If you really do have a 67 page document, For the sake of the argument, that was page 67 of a 149-page document .. > it would be better to store each page in its own ZODB > object, and index each page individually. Well, the number of pages depends on the formatting .. but it migh

Re: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread Toby Dickenson
On Mon, 14 Aug 2000 13:04:49 +0100, Chris Withers <[EMAIL PROTECTED]> wrote: >Jean Jordaan wrote: >> I've already got a pretty structured-text "Abstract" field >> that tells about the document, but I'd like to *see* the >> sentence on page 67 or wherever in a document where my >> term matches, so

Re: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread Chris Withers
Jean Jordaan wrote: > > Dunno if Catalog can do it either .. not even if I do include the > fulltext in the MetaData Table. 'Cause the hit will have come > from the indexed text, so it has no way of knowing *which* hit in > the original fulltext it was .. right? Yeah, but there may be some undoc

RE: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread Jean Jordaan
Dunno if Catalog can do it either .. not even if I do include the fulltext in the MetaData Table. 'Cause the hit will have come from the indexed text, so it has no way of knowing *which* hit in the original fulltext it was .. right? -- jean ___ Zope

Re: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread Chris Withers
Jean Jordaan wrote: > I've already got a pretty structured-text "Abstract" field > that tells about the document, but I'd like to *see* the > sentence on page 67 or wherever in a document where my > term matches, so I know whether it's mentioned in passing > or really important .. erk... that's a

RE: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread Jean Jordaan
Hi Geir > make a pythonmethod that returns the first 200 letters or > something of the text , I've already got a pretty structured-text "Abstract" field that tells about the document, but I'd like to *see* the sentence on page 67 or wherever in a document where my term matches, so I know whe

Re: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread Geir Bækholt
on Monday, August 14, 2000 Jean Jordaan wrote : JJ> This works great, but returns only the JJ> found objects and the cached properties specified in the JJ> MetaDate Table. JJ> Wouldn't it be great to be able to give just a line or two JJ> of context from the full text, the way Google does?

Re: [Zope] ZCatalog attachments?

2000-08-13 Thread jan
> > Simon Coles writes: > > > We have binary files stored in Zope, for example Word documents (but > > > could be any of a variety of document types). > > > > > > We would like to be able to index and search the contents of these > > > files using ZCatalog. So if a Word file contains the word

Re: [Zope] ZCatalog attachments?

2000-08-05 Thread Phil Harris
, August 04, 2000 9:06 PM Subject: Re: [Zope] ZCatalog attachments? > Simon Coles writes: > > We have binary files stored in Zope, for example Word documents (but > > could be any of a variety of document types). > > > > We would like to be able to index and search t

Re: [Zope] ZCatalog attachments?

2000-08-05 Thread Dieter Maurer
Simon Coles writes: > We have binary files stored in Zope, for example Word documents (but > could be any of a variety of document types). > > We would like to be able to index and search the contents of these > files using ZCatalog. So if a Word file contains the word "Fred", > then any

Re: [Zope] ZCatalog attachments?

2000-08-04 Thread Aleksander Salwa
On Fri, 4 Aug 2000, Simon Coles wrote: > We have binary files stored in Zope, for example Word documents (but > could be any of a variety of document types). > > We would like to be able to index and search the contents of these > files using ZCatalog. So if a Word file contains the word "Fre

Re: [Zope] ZCatalog updating

2000-07-31 Thread R. David Murray
On Mon, 31 Jul 2000, Aaron Williamson wrote: > I am convinced this is a stupid question that has been answered a > hundred times already, but after scouring zope.org and the archives, I > still don't know the answer, so... > > How can I automatically update my ZCatalog when items have been > adde

Re: [Zope] ZCatalog updating

2000-07-31 Thread Chris Withers
Aaron Williamson wrote: > How can I automatically update my ZCatalog when items have been > added/modified/changed? CatalogAware Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML enco

Re: [Zope] zcatalog and squishdot newbie question

2000-07-24 Thread Chris Withers
George Donnelly wrote: > you shouldn't need to create a Catlog and then put your Squishdot site in > it. The main squishdot site *is* a Catalog, or has Catalog-like qualities. > (i think). Well, it is a subclass of ZCatalog as of Squishdot 0.4.0 > if you want to be able to search the Squishdot s

Re: [Zope] zcatalog and squishdot newbie question

2000-07-23 Thread George Donnelly
i'm a bit of a newbie myself so take my advice with a grain of salt, but... you shouldn't need to create a Catlog and then put your Squishdot site in it. The main squishdot site *is* a Catalog, or has Catalog-like qualities. (i think). if you want to be able to search the Squishdot site *and* ot

Re: [Zope] ZCatalog & dynamic sites

2000-07-21 Thread Dieter Maurer
> I have a Zope site that uses MySQL to dynamically create some pages. > What I want is the ability to search throughout the site, INCLUDING > the pages that are database-driven. It seems to me that ZCatalog only=20 > finds items that exist *in zope*. > > Is it something ZCatalog can't do o

  1   2   >