Hi Guys,

I got this all working! However, I ran into another issue.

Never had a problem until I upgraded to 2.0 so I'm not sure what's
been changed. When I try running the following line

<cfsearch name="collection" collection="my_collection" type="simple"
criteria="*" >

I'm getting  'numHits must be > 0; please use TotalHitCountCollector
if you just need the total hit count '

Before, it would just return a query with a recordCount of zero if it
were empty. Now it's tossing the error.

These collections are empty at the moment, but I have some scrips that
rebuild the collections that may hit it when it's empty. I never got
an error when I'd run this before on an empty collection. I'd just get
zero results.

Thoughts?

On Nov 23, 3:45 pm, Matthew Woodward <[email protected]> wrote:
> What Alan had in his response is exactly what you do.
> On Nov 23, 2011 3:18 PM, "Jason King" <[email protected]> wrote:
>
>
>
>
>
>
>
> > instead of this
>
> >                        <cfindex
> >                                action="update"
> >                                collection="my_collection"
> >                                type="custom"
> >                                key="#key#"
> >                                title="#title#"
> >                                urlPath=""
> >                                body="#variables# #other_variables#"
> >                                category ="#category_name#"
> >                                custom1 = "#date_created#"
> >                                custom2 = "#user_url#"
> >                                custom3 = ""
> >                                custom4 = ""
>
> > do this?
>
> > <cfset args = {
> >  action: "update",
> >  collection: "my_collection",
> >  type:"custom",
> >  key:"#key#",
> >  title:"#title#",
> >  urlPath:"",
> >  body:"#variables# #other_variables#",
> >  category :"#category_name#",
> >  custommap:{
> >  user_url:"#user_url#"
> >  }
> > }>
>
> >  --
> > online documentation:http://openbd.org/manual/
> > google+ hints/tips:https://plus.google.com/115990347459711259462
> >http://groups.google.com/group/openbd?hl=en

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

Reply via email to