Sure.

<CFSET Props = StructNew()>
<CFSET Props.art_to = "*business*">
<CFSET Props.art_bodytext = "*running*">
<CFSET Props.art_pretext = art_bodytext>
<CFSET FirstOfTheYear = CreateDate(Year(Now(),1,1)>
<CFA_CONTENTOBJECTFIND
        DATASOURCE="Whatever"
        TYPEID="YourType"
        STPROPERTIES="#Props#"
        DTCREATEDAFTER="#FirstOfTheYear#"
        LKEYWORDS="health"
        R_STOBJECTS="Results"
>

I made the date thing dynamic so it always returns stuff made after the
first of the current year. Since you wanted pretext the same as bodytext, I
did a copy instead of setting both to running. I also used *s to make stuff
match partially. If you want exact matches, remove the *s.

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

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

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

> -----Original Message-----
> From: Daniel Niklasson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 14, 2001 8:43 AM
> To: Spectra-Talk
> Subject: RE: Searching
>
>
> > Actually, contentObjectFind can do the cross for you. It has
> the ability to
> > limit by keywords and categories.
>
> Can you give me an example how to write this? I want to get the objects
> where the property "art_to" is "business", the property
> "art_bodytext" is "running" (or better, search both properties
> "art_bodytext" AND "art_pretext" for "running"), has the
> meta-data-keyword "health" and are created after
> 2001-01-01.
>
> Thanks.
>
> --------------------------------------------
> Daniel Niklasson                 Resco Väst
> Programmerare / Sysadmin
>
> Tel: 031-7439203, Mobil: 0708-903238
>
> Unix *is* user-friendly - It´s just selective who it´s friends are.
> --------------------------------------------
>
> Ännu en Rescoproduktion på webben - Telias nya startsida!
> Titta på www.startsidan.telia.se och njut av möjligheterna.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to