Thanks for the reply Nando.
I checked each of your suggestions with no luck.
It's quite a mystery!

1.  Do you have the correct name of the collection in your cfsearch tag?
Yes:  when I misspell the collection it throws an error.
2.  Did you LCase the criteria as below?
Yes.
3.  Are you sure your test search should return a result?
Yes, I picked a word that occurs multiple times.
4.  Does the name attribute of the cfsearch tag match the scope of the variable you're
trying to output?
I think so:
<head>
  <title>Search Results</title>
</head>
<body>
<cfsearch
  name = "codecoll_results"
  collection = "CodeColl"
  criteria = "#LCase(Form.Criteria)#">

<h2>Search Results</h2>
<cfoutput>
Your search returned #codecoll_results.RecordCount# file(s).
</cfoutput>

<cfoutput query="codecoll_results">
  <p>
  File: <a href="">   Document Title (if any): #Title#<br>
  Score: #Score#<br>
  Summary: #Summary#</p>
</cfoutput>
</body>
</html>

>You need to index the collection before you search, otherwise you get no results.
>Seems you've done that.
>
>Do you have the correct name of the collection in your cfsearch tag?
>Did you LCase the criteria as below?
>Are you sure your test search should return a result?
>Does the name attribute of the cfsearch tag match the scope of the variable you're
>trying to output?
>
><cfsearch collection="myCollection" name="searchResults" type="SIMPLE"
>criteria="#LCase(form.searchCriteria)#" language="English">
>
><cfoutput>#searchResults.RecordCount# results found out of
>#searchResults.RecordsSearched# records searched.</cfoutput>
>
>-----Original Message-----
>From: Andy Hammer [mailto:[EMAIL PROTECTED]
>Sent: Thursday, February 12, 2004 1:21 AM
>To: CF-Talk
>Subject: Verity returns zero hits
>
>
>I am using CFMX on Redhat8. The CFMX Administrator
>allows me to create and index a collection called
>CodeColl. I am using the sample pages of
>collection_search_form.cfm and
>collection_search_action.cfm as I found them. The
>script runs with no errors, but I get zero
>hits. I have also tried indexing the collection
>manually with the cfindex tag. That also runs with a
>success message, but my searches all are empty. CF is
>indexing something. The verity/collections folder gets
>much larger after the indexing process. Any ideas on
>my
>empty results?
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Finance: Get your refund fast by filing online.
>http://taxes.yahoo.com/filing.html
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to