> I am having a very difficult time with populating a verity
> index. I have defined the collection with cfserver. I am using
> a query to populate it. here is my code blocks, can anyone please
> tell me what I am doing wrong here?
>
> ...
>
> The cf_showquery will show everything I have selected but nothing
> is searched in the cfsearch tag...here is my code for that:
>
> <CFSEARCH NAME="srch_EntryResults"
> COLLECTION="NotebookTest"
> CRITERIA="Criteria">
> <cfoutput>Note entries containing #form.criteria#:<br></cfoutput>
> <cf_showquery query="srch_EntryResults">
>
>
> This showquery shows no results. Even the recordssearched is
> not defined, as if nothing was searched at all.
My guess is that you're passing the literal string "Criteria" to CFSEARCH;
instead, you should be evaluating that variable within the literal string
argument:
<cfsearch name="srch"
collection="mycollection"
criteria="#Form.Criteria#">
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists