Update of /var/cvs/contributions/lucene/src/org/mmbase/module/lucene
In directory james.mmbase.org:/tmp/cvs-serv12296
Modified Files:
NewSearcher.java
Log Message:
Nicer toString on the event
See also:
http://cvs.mmbase.org/viewcvs/contributions/lucene/src/org/mmbase/module/lucene
Index: NewSearcher.java
===================================================================
RCS file:
/var/cvs/contributions/lucene/src/org/mmbase/module/lucene/NewSearcher.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- NewSearcher.java 1 Feb 2008 11:08:21 -0000 1.4
+++ NewSearcher.java 21 Jul 2008 14:30:18 -0000 1.5
@@ -15,7 +15,7 @@
* All the code necessary to propagate events with the meaning 'the lucene
index has changed, you must refresh your searchers'.
* @since MMBase-1.9
* @author Michiel Meeuwissen
- * @version $Id: NewSearcher.java,v 1.4 2008/02/01 11:08:21 michiel Exp $
+ * @version $Id: NewSearcher.java,v 1.5 2008/07/21 14:30:18 michiel Exp $
*/
public class NewSearcher {
@@ -32,6 +32,9 @@
public String getIndex() {
return index;
}
+ public String toString() {
+ return "new searcher for index '" + index + "'" + (isLocal() ? ""
: (" from " + getMachine()));
+ }
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs