I have a fresh install of Zope 2.5.1 (Python 1.3.1) running on XP pro and am attempting to use a Zcatalog. The catalog is created without proublems bot I can not get the "Find Objects" tab to return any results no matter how narrow or broad the criteria is. The "Find" tab of any other object works fine. Is this a problem with me or the software? I've followed a number of tutorials and examples to the letter with the same (lack of) results. "I am not a number! I am a free man!" --The Prisoner
Eric Adam wrote:
I have a fresh install of Zope 2.5.1 (Python 1.3.1) running on XP pro and am attempting to use a Zcatalog. The catalog is created without proublems bot I can not get the "Find Objects" tab to return any results no matter how narrow or broad the criteria is. The "Find" tab of any other object works fine.
Is this a problem with me or the software? I've followed a number of tutorials and examples to the letter with the same (lack of) results.
"I am not a number! I am a free man!" --The Prisoner
Finding objects in a catalog context means cataloging those objects :) It doesn't have a 'search results' type dialog. -- Matt Kromer Zope Corporation http://www.zope.com/
I am inside of a zcatalog instance and on the "Find Objects" tab it says "Use this form to locate objects to be cataloged. Those objects which are found will be automatically added to the catalog.". So I enter in some search criteria for the objects I want to catalog and hit the "Find and Catalog" button. After the search ran, it returned no results, which are supposed to be listed on the "catalog" tab. I mentioned the regular find tab of objects because I figured that they used the same base for searching and that it was working. I have nothing indexed in the catalog because it can't find anything and I haven't written anything that catalogs itself. Am I still wrong? This is the cancept I get from 2 books and the docs on the Zope site.
I have a fresh install of Zope 2.5.1 (Python 1.3.1) running on XP pro and am attempting to use a Zcatalog. The catalog is created without proublems bot I can not get the "Find Objects" tab to return any results no matter how narrow or broad the criteria is. The "Find" tab of any other object works fine.
Finding objects in a catalog context means cataloging those objects :) It doesn't have a 'search results' type dialog.
Eric Adam wrote:
I am inside of a zcatalog instance and on the "Find Objects" tab it says "Use this form to locate objects to be cataloged. Those objects which are found will be automatically added to the catalog.".
These objects will indeed be cataloged. But if you want to do a full text search, the objects you want to include needs to have a method called "PrincipiaSearchSource" that returns all the contents of your classes as clear text. There are other ways to do it, but that is the easiest.
So I enter in some search criteria for the objects I want to catalog and hit the "Find and Catalog" button.
After the search ran, it returned no results, which are supposed to be listed on the "catalog" tab.
I mentioned the regular find tab of objects because I figured that they used the same base for searching and that it was working.
I have nothing indexed in the catalog because it can't find anything and I haven't written anything that catalogs itself.
Am I still wrong? This is the cancept I get from 2 books and the docs on the Zope site.
If you have an object like this: class objToCatalog: meta_type = 'objToCatalog' title = 'This is my title' content = 'this is my content' def PrincipiaSearchSource(self): return self.title + ' ' + self.content Then you can use the "Find and Catalog" function to find all objects with meta_type 'objToCatalog'. And your vocabulary will contain the words: 'This', 'is', 'my', 'title', 'content' regards Max M
Ok. now that we're on the same page, why doesn't Find and Catalog find anything? I get no errors returned and no found objects returned.
If you have an object like this:
class objToCatalog:
meta_type = 'objToCatalog'
title = 'This is my title' content = 'this is my content'
def PrincipiaSearchSource(self): return self.title + ' ' + self.content
Then you can use the "Find and Catalog" function to find all objects with meta_type 'objToCatalog'. And your vocabulary will contain the words: 'This', 'is', 'my', 'title', 'content'
regards Max M
Eric Adam wrote:
Ok. now that we're on the same page, why doesn't Find and Catalog find anything? I get no errors returned and no found objects returned.
Well ... are you searching any catalog aware objects? Is your catalog in a place where it can find any objects to catalog? It looks down through the hierachy recursively. regards Max M
participants (3)
-
Eric Adam -
Matthew T. Kromer -
Max M