lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "DataImportHandler" by VjacheslavIgnatyev
Date Tue, 25 Dec 2012 17:23:49 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "DataImportHandler" page has been changed by VjacheslavIgnatyev:
http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=331&rev2=332

      public String evaluate(String expression, Context context) {
        List<Object> l = parseParams(expression, context.getVariableResolver());
        if (l.size() != 1) {
-           throw new RuntimeException("'toLowerCase' must have only one parameter ");
+           throw new RuntimeExme ception("'toLowerCase' must have only one parameter ");
        }
        return l.get(0).toString().toLowerCase(Locale.ROOT);
      }
    }
  }}}
+ 
+ Few [[http://ignatyev-dev.blogspot.com/2012/12/solr-functions-in-action.html|functions]]
'''decode''', '''load''', '''run''' which can help with complex SQL statements. 
+ 
  === Accessing request parameters ===
  All http request parameters sent to SOLR when using the dataimporter can be accessed using
the 'request' namespace eg: `'${dataimporter.request.command}'` will return the command that
was run.
  

Mime
View raw message