bug in dataimport context ?

2010-09-16 Thread Marc Emery
Hi, It seems the dataimport context session setter is harcoded to the "entitySession": private void putVal(String name, Object val, Map map) { if(val == null) map.remove(name); else entitySession.put(name, val); } shouldn't be rather like this: private void putVal(String name, Obj

How to extend the BinaryResponseWriter imposed by Solrj

2010-08-03 Thread Marc Emery
Hi, I'm trying to extend the writer used by solrj (org.apache.solr.response.BinaryResponseWriter), i have declared it in solrconfig.xml like this I see that it is initialized, but when i try to set the 'wt' param to 'myWriter' solrQuery.setParam("wt","myWriter"), nothing happen, it's still usi

DIH context fails to store in global scope

2010-07-16 Thread Marc Emery
Hi, I am writing a EventListener that put some data in the content on import start: ctx.setSessionAttribute( DOCTYPE_MAPPING, docTypeMap, Context.SCOPE_GLOBAL ); but it doesn't seem to work. looking at the trunk code of ContextImpl.java the globalSession is not called: private void putVal(St

Dataimport in debug mode store a last index date

2010-06-09 Thread Marc Emery
Hi, When using the data import handler and clicking on 'Debug now' it stores the current date as 'last_index_time' into the dataimport.properties file. Is it the right behaviour, as debug don't do a commit? Thanks marc