Author: navssurtani
Date: 2008-06-06 10:52:03 -0400 (Fri, 06 Jun 2008)
New Revision: 5962
Modified:
searchable/trunk/src/main/java/org/jboss/cache/search/SearchableListener.java
Log:
Edited SearchableListener
Modified: searchable/trunk/src/main/java/org/jboss/cache/search/SearchableListener.java
===================================================================
---
searchable/trunk/src/main/java/org/jboss/cache/search/SearchableListener.java 2008-06-06
08:53:21 UTC (rev 5961)
+++
searchable/trunk/src/main/java/org/jboss/cache/search/SearchableListener.java 2008-06-06
14:52:03 UTC (rev 5962)
@@ -53,4 +53,23 @@
}
+
+ void handleDeleteData(NodeModifiedEvent event)
+ {
+ Map dataMap = event.getData();
+
+ for(Object key: dataMap.keySet())
+ {
+ String keyString = (String) key;
+ String docId = Transformer.generateId(event.getFqn(), keyString);
+
+ new Work (dataMap.get(key), docId, WorkType.DELETE);
+
+ //TODO: Add to queue.
+
+ }
+
+
+ }
+
}
Show replies by date