Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by NoblePaul: http://wiki.apache.org/solr/DataImportHandler ------------------------------------------------------------------------------ * '''`basePath`''': (optional) The base path relative to which the value is evaluated * '''`encoding`''': (optional) If the files are to be read in an encoding that is not same as the platform encoding + == Boosting , Skipping documents == + It is possible to decide in the runtime to skip or boost a particular document. + + Write a custom Transformer to add a value '''$skipDoc''' with a value 'true' to skip that document. To boost a document with a given value add '''$docBoost''' with the boost value + == Adding datasource in solrconfig.xml == [[Anchor(solrconfigdatasource)]] @@ -723, +728 @@ * ''formatDate'' : It is used like this `'${dataimporter.functions.formatDate(item.ID, yyyy-MM-dd HH:mm)}'` . The first argument can be a valid value from the !VariableResolver and the second cvalue can be a a format string (use !SimpledateFormat) . The first argument can be a computed value eg: `'${dataimporter.functions.formatDate('NOW-3DAYS', yyyy-MM-dd HH:mm)}'` and it uses the syntax of the datemath parser in Solr. (note that it must enclosed in single quotes) * ''escapeSql'' : Use this to escape special sql characters . eg : `'${dataimporter.functions.escapeSql(item.ID)}'` . Takes only one argument and must be a valid value in the !VaraiableResolver. * ''encodeUrl'' : Us this to encode urls . eg : `'${dataimporter.functions.encodeUrl(item.ID)}'` . Takes only one argument and must be a valid value in the !VariableResolver + + === Accessing request parameters === + The parameters passed over the http request can be accessed using the 'request' namespace eg: `'${dataimporter.request.command}'` will return the command that was run . Any extra parameter can be accessed using this [[Anchor(interactive)]] = Interactive Development Mode = This is a new cool and powerful feature in the tool. It helps you build a dataconfig.xml with the UI. It can be accessed from http://host:port/solr/admin/dataimport.jsp . The features are
