lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "marc emery (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-2704) Context of DataImportHandler can't store in Global Scope
Date Wed, 10 Aug 2011 12:33:30 GMT
Context of DataImportHandler can't store in Global Scope
--------------------------------------------------------

                 Key: SOLR-2704
                 URL: https://issues.apache.org/jira/browse/SOLR-2704
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 3.3
            Reporter: marc emery
            Priority: Minor


The putVal method doesn't care about the 'map' object when adding, it always use entitySession
(instead of globalSession for SCOPE_GLOBAL)

  private void putVal(String name, Object val, Map map) {
    if(val == null) map.remove(name);
    else entitySession.put(name, val);
  }

then it should be 

  private void putVal(String name, Object val, Map map) {
    if(val == null) map.remove(name);
    else map.put(name, val);
  }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message