Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

old data in cfsearch dump

$
0
0

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


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>