Update of /var/cvs/contributions/lucene/src/org/mmbase/module/lucene
In directory james.mmbase.org:/tmp/cvs-serv7783/src/org/mmbase/module/lucene
Modified Files:
Lucene.java
Log Message:
report the path in the admin pages too
See also:
http://cvs.mmbase.org/viewcvs/contributions/lucene/src/org/mmbase/module/lucene
Index: Lucene.java
===================================================================
RCS file:
/var/cvs/contributions/lucene/src/org/mmbase/module/lucene/Lucene.java,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -b -r1.118 -r1.119
--- Lucene.java 29 Jul 2008 08:54:59 -0000 1.118
+++ Lucene.java 29 Jul 2008 09:01:20 -0000 1.119
@@ -48,7 +48,7 @@
*
* @author Pierre van Rooden
* @author Michiel Meeuwissen
- * @version $Id: Lucene.java,v 1.118 2008/07/29 08:54:59 michiel Exp $
+ * @version $Id: Lucene.java,v 1.119 2008/07/29 09:01:20 michiel Exp $
**/
public class Lucene extends ReloadableModule implements NodeEventListener,
RelationEventListener, IdEventListener, AssignmentEvents.Listener {
@@ -628,6 +628,11 @@
return indexerMap.get(defaultIndex);
}
});
+ addFunction(new AbstractFunction/*<String>*/("path", Parameter.EMPTY,
ReturnType.STRING){
+ public String getFunctionValue(Parameters arguments) {
+ return Lucene.this.indexPath;
+ }
+ });
//addFunction(new AbstractFunction<List<String>>("errors", INDEX,
OFFSET, MAX) {
addFunction(new AbstractFunction("errors", new Parameter[] {INDEX,
OFFSET, MAX}, ReturnType.LIST) {
@@ -694,7 +699,7 @@
indexPath = indexPath.replaceAll("/+", File.separator);
log.service("found module parameter for lucene index
path : " + indexPath);
} else {
- indexPath = binaryFileBasePath + lucene +
File.separator + databaseName;
+ indexPath = binaryFileBasePath + "lucene" +
File.separator + databaseName;
}
if(indexPath != null) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs