I have a cfsearch that is displaying a record that was deleted from the database weeks ago. I have run the code below and the record keeps coming up. What am I doing wrong? Here's the code:
<cfquery name="getstudents" datasource="myDatasource">
SELECT ID, fname, lname, fullName
FROM student
</cfquery>
<cfindex query="getstudents"
collection="myCollection"
action="update"
type="custom"
key="ID"
title="fullName"
body="fname, lname, fullName">
<cfsearch
collection="myCollection"
name="getStudents2"
criteria="smith"
maxrows = "100">
cfdump of getstudents returns the records with one instance of smith
cfdump of getstudents2 returns the records with two instances of smith - one of which has been deleted from the database