Revision 2491
Added by sgarg over 19 years ago
src/edu/ucsb/nceas/metacat/DocumentImpl.java | ||
---|---|---|
1195 | 1195 |
// Delete the previous index entries for this document |
1196 | 1196 |
deleteNodeIndex(dbConn); |
1197 | 1197 |
|
1198 |
// Delete all the entries in xml_queryresult |
|
1199 |
PreparedStatement pstmt = dbConn.prepareStatement( |
|
1200 |
"DELETE FROM xml_queryresult WHERE docid = ?"); |
|
1201 |
pstmt.setString(1, docid); |
|
1202 |
pstmt.execute(); |
|
1203 |
pstmt.close(); |
|
1204 |
dbConn.increaseUsageCount(1); |
|
1205 |
|
|
1206 |
|
|
1198 | 1207 |
// Step through all of the node records we were given |
1199 | 1208 |
// and build the new index and update the database |
1200 | 1209 |
it = nodeRecordLists.iterator(); |
Also available in: Unified diff
Added code to delete all entries in xml_queryresult table when buildIndex for a docid is called.