Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Spectra-Talk
Cold Fusion Spectra - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Spectra :
product's home
product's list home
 
  Archived TallyList / Spectra-Talk: 
Subject: RE: keyword Bug in cfa_metadataKeywordObjectFind
Raymond Camden (229p/+0r)     Posted: Tuesday 02 Jan 2001
This post: 32 views, +0 rating

As Ben described earlier, it is a known bug that you can't say, "Give me an object assigned with keywords A and B from Cats A and B _respectively_", but I have a few things for you:

1) What you describe is really a different bug. You want objects that are ONLY in a particular category. In your example, you did get an object back that had OAK assigned, but it also had EAGLE. If I'm reading you right, this is a completely different issue then what you desribed. There is no way, right now, to say, give me an object that has keyword A or cat A and nothing else.

2) Maybe you didn't mean a ONLY match. After rereading your post, it sounds like your trying to do a AND type search, ie, it has to be in both guys. Again, this is not possible currently, but it could be done with a modification to the search tag. Actually, since we pass the keywords the same way you pass them, a comma-delimited list, and Verity treats lists like that as an OR search, you may want to try passing the list of keywords like so:

apple AND oranges

If you look at mdkeywordobjectfind and see how it constructs the category restriction, you will see it's an OR string, which you could change to an AND, or change to Attributes.CategoryAndOr

4) You say you want to find objects that are assigned in category Foo (let's forget for a moment you want stories ONLY in Foo), if so, why are you using keywordobjectfind, why not use categoryobjectfind instead?

======================================================================= Raymond Camden, Principal Spectra Compliance Engineer for Allaire

Email : jedimaster@allaire.com ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message----- > From: Johan Coens [mailto:j.coens@thefactore.com] > Sent: Tuesday, January 02, 2001 5:21 AM > To: Spectra-Talk > Subject: RE: keyword Bug in cfa_metadataKeywordObjectFind > > > First, thank you all for your responses. I've taken a deeper look into the > problem (and maybe I should have done that before) and found out what my > problem is. I'll try to bring it as clear as possible with the following > example. > > I have my type books and articles and the following hierarchy: > nature > trees > POPLAR > OAK (article and book ASSIGNED) > flowers > ROSE > TULIP > wildlife > fishes > SHARK > GOLDFISH > birds > EAGLE (book ASSIGNED) > SPARROW (article ASSIGNED) > > My article is about oaks and sparrows, so my article is assigned to the > keywords OAK and SPARROW. > I have a book which is about eagles and oaks, so my book is > assigned to the > keywords OAK and EAGLE. > > In my site I am in the section wildlife, so I only want books from the > category and subcategories from wildlife. So my call is the following: > <cfa_metadataKeywordObjectFind > dataSource = "#request.datasource#" > keywords = "OAK,SPARROW" > resultSet = "key" > lTypeIDs = "#request.TypeIDs.Book#" > r_stObjects = "keysBooks" > lCategoryIDs = "list of categoryIDs from wildlife" > > > > When I take a look at the object properties of my book: > objectdata > stKewords > OAK > EAGLE > lCategories: catID_birds,catID_trees > > The tag cfa_metadataKeywordObjectFind searches like: > 1. Is the categoryID present > 2. Is the keyword present > 3. Does the typeID match > > If all questions are answered with YES, then the object will be returned. > One essential question is missing though: > 4. Is the matching keyword member of the provided categories. > > This condition is not made in metadataKeywordObjectFind. My book is > returned, eventhough it is not about eagles. So before I do a > metadataKeywordObjectFind, I have to filter all keywords out which are not > present in my categories. > > Thanks all and a happy new year, > Johan Coens >

~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~ Get Your Own Dedicated Win2K Server! Instant Activation for $99/month w/Free Setup from SoloServer PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support Visit SoloServer, https://secure.irides.com/clientsetup.cfm. ------------------------------------------------------------------------------ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a message to spectra-talk-request@houseoffusion.com with 'unsubscribe' in the body.


Similar Subject Line Posts (+/- two weeks of this post)
RE: keyword Bug in cfa_metadataKeywordObjectFind  02 Jan 2001   (28 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  02 Jan 2001 (this post)   (32 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  02 Jan 2001   (30 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  02 Jan 2001   (29 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  02 Jan 2001   (25 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  02 Jan 2001   (20 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  01 Jan 2001   (24 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  01 Jan 2001   (28 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  01 Jan 2001   (30 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  01 Jan 2001   (35 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  29 Dec 2000   (30 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  29 Dec 2000   (21 v/ +0 r)
RE: keyword Bug in cfa_metadataKeywordObjectFind  29 Dec 2000   (24 v/ +0 r)
keyword Bug in cfa_metadataKeywordObjectFind  29 Dec 2000   (25 v/ +0 r)
 

Send a reply to the Spectra-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000