I recently had to rebuild our catalog using the manage_catalogFind form in the ZMI. In this case, I simply selected the object types that I wanted recataloged, then clicked the "find and catalog" button. However, I now notice that almost every object that was found is entered into the catalog twice, once with the relative path from the top of the site, and second with a path that begins above the folder in which the site is contained, such as: 1) /myobject/ 2) /mysite/myojbect Tell me, does anyone have any suggestions for an expression to find and catalog only objects with the first path and omit all objects starting with the second path. Any advice is appreciated. John T.
try just rebuilding the catalog in prtal_catalog/advanced ->rebuild robert KJZZ Webmaster wrote:
I recently had to rebuild our catalog using the manage_catalogFind form in the ZMI. In this case, I simply selected the object types that I wanted recataloged, then clicked the "find and catalog" button.
However, I now notice that almost every object that was found is entered into the catalog twice, once with the relative path from the top of the site, and second with a path that begins above the folder in which the site is contained, such as:
1) /myobject/
2) /mysite/myojbect
Tell me, does anyone have any suggestions for an expression to find and catalog only objects with the first path and omit all objects starting with the second path.
Any advice is appreciated.
John T.
_______________________________________________ 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 )
Robert, thanks for the suggestion. I am using Zope for our sites, not Plone. There is no rebuild option in the manage_catalogAdvanced tab. However, it turns out there is another solution to this issue: I checked the zope book under "Searching and Categorizing Content" and it turns out that I had been using the getPath() method to display results from catalog queries when I should have been using the getURL() method. When I changed my script to use the getURL() method, the path was displayed from the root of the site, as in "/myobject/" as desired, (instead of "/mysite/myojbect") as I was getting before. Thanks! John T. ----- Original Message ----- From: "robert rottermann" <robert@redcor.ch> Subject: Re: [Zope] Path Level in Catalog
try just rebuilding the catalog in prtal_catalog/advanced ->rebuild
participants (3)
-
KJZZ Webmaster -
kjzz.webmaster@riomail.maricopa.edu -
robert rottermann