Hello again. I'm having some trouble using the searchResults(...) method from ZCatalog. 1) If I want to find NewsItem and search for News ZCatalog doesn't find it. I must explicitly find for NewsItem for Zope to find it. Is there any way to use wildcards? 2) I don't know how to distinguish between AND and OR searches. If I introduce the search items in a list, Zope performs an OR search. Thanks, Antonio Costa -- URL: http://www.terravista.pt/Enseada/1831 http://accosta.planetaclix.pt http://students.fct.unl.pt/~anjc PT is Portugal ####### # # # #" #" # Linux ##vvvvv## Rules! ## vvv ## # ## ## ## ### ### +++##### ##++ ++++++# #++++++ +++++++# #+++++++ +++++#######+++++ +++ +++ "Perfection is achieved, not when there's nothing else to add, but when there's nothing else to take away."
1) If I want to find NewsItem and search for News ZCatalog doesn't find it. I must explicitly find for NewsItem for Zope to find it. Is there any way to use wildcards?
I don't think I understand this question. Sorry!
2) I don't know how to distinguish between AND and OR searches. If I introduce the search items in a list, Zope performs an OR search.
Yes, this is currently hardcoded. :-( There's no easy way to change it without messing around with the ZCatalog source. The workaround would be to make multiple calls to searchResults and perform an intersection manually.
participants (2)
-
Antonio João Costa -
Chris McDonough