Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Verity Finds No Results!

Status
Not open for further replies.

ghostdogenterprise

Programmer
Joined
Aug 28, 2002
Messages
4
Location
US
Having an odd problem. Hoping I can get a little help. I've created a Verity collection using the CF admin and I've set up an index and search pages to pull the data from a database.

Here's the problem: When I submit a search word or Article number to the collection I get 0 results regardless. I look at my database and I know that I have records put I'm still getting no results and not errors. I'm thinking it's either the logic I employ on the beginning of the action page or a problem with my connection to the collection or database. Any help Would be appreciated.

Indexdata Page
<cfquery name=&quot;GetResults&quot; datasource=&quot;OPARAS&quot;>
SELECT ID, Upload, Description, Subject, Date_Modified,
Date_Created, Keywords, Notes
From Reference
</cfquery>

<cfindex action=&quot;update&quot;
collection=&quot;OPARAS&quot;
key=&quot;ID&quot;
Type=&quot;Custom&quot;
Title=&quot;Subject&quot;
Query=&quot;GetResults&quot;
Body=&quot;Description, Keywords, ID, Upload, Subject, Category, Subject, Notes&quot;
Custom1=&quot;ID&quot;>


<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;>

<html>
<head>
<title>Indexing Complete</title>
</head>

<body>
<h1>Indexing Complete</h1>


</body>
</html>


CF SEARCH PAGE

<table width = 100% border=&quot;0&quot;>
<tr>
<td align=&quot;left&quot;><br></td>
<td valign=&quot;top&quot; align=&quot;left&quot;>Search Factbook <nobr>
<form
action=&quot;adminaction.cfm&quot;
method=&quot;post&quot;
name=&quot;Search&quot;
target=&quot;search&quot;
style=&quot;adminbox&quot;
ONSUBMIT=&quot;setTimeout('document.Search.reset()', 500) ;&quot;>

<p>Keywords:
<input type=&quot;Text&quot; name=&quot;Criteria&quot;>
<br>
Article Number:
<input type=&quot;text&quot; name=&quot;ID&quot;>
<input type=&quot;submit&quot; value=&quot;Search&quot; name=&quot;Search&quot;>
<input type=&quot;Reset&quot; value=&quot;Reset&quot; name=&quot;Reset&quot;>
<br>
</p>
</form></td><td valign=&quot;top&quot; align=&quot;right&quot;><a href=&quot;refau1.cfm&quot; target=&quot;_parent&quot;>Add New Entry</a></td>


CF Action Page

<cfif Form.ID is not &quot;&quot;>
<!-- If an Article_ID is Given, Use it and ignore other input -->
<cfset TheCriteria = &quot;CF_Custom1 <MATCHES> #Form.ID#&quot;>

<cfelse>
<!-- Only Keywords are Specified -->
<cfset THECriteria = &quot;#Form.Criteria#&quot;>
</cfif>

<cfsearch collection=&quot;OPARAS&quot;
Name=&quot;GetResults&quot;
Criteria=&quot;#THECriteria#&quot;>


<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;>

<html>
<head>
<title>Search Results</title>
<!-- <link rel=&quot;stylesheet&quot; href=&quot;adminstyle.css&quot;> -->
</head>

<body>
<table align=&quot;center&quot; width=&quot;50%&quot;><h4><cfoutput>Retrieved #GetResults.RecordCount# files </cfoutput></h4>

<p align=&quot;right&quot;><cfoutput>Actual Criteria Used: #HTMLEditFormat(THECriteria)#</cfoutput></p>
<dl>
<cfoutput query=&quot;GetResults&quot;>

<!--- <tr bgcolor=&quot;#IIf(CurrentRow Mod 2, DE('ffffcc'), DE('eeeeee'))#&quot;> --->
<td> <dt><i>#NumberFormat(Round(Score * 100))#%</i>
<a href=&quot;refau1.cfm?ID=#Custom1#&quot;>#Title#</a></td></tr>
<tr></tr><td><dd><font size=&quot;-1&quot;><i><b>Article Number #Custom1#. </b></i>#Summary#</font></td></tr>
</cfoutput>
</dl></table>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top