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 PrashantPunjabi
Date Thu, 27 Dec 2012 21:19:44 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 PrashantPunjabi:
http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=333&rev2=334

Comment:
Changing LineEntityProcessor attribute from "omitLineRegex" (incorrect) to "skipLineRegex"
(correct)

  
   * '''`url`''' : a required attribute that specifies the location of the input file in a
way that is compatible with the configured datasource. If this value is relative and you are
using !FileDataSource or URLDataSource, it assumed to be relative to '''baseLoc'''.
   * '''`acceptLineRegex`''' :an optional attribute that if present discards any line which
does not match the regExp.
-  * '''`omitLineRegex`''' : an optional attribute that is applied after any acceptLineRegex
and discards any line which matches this regExp.
+  * '''`skipLineRegex`''' : an optional attribute that is applied after any acceptLineRegex
and discards any line which matches this regExp.
  
  example:
  
@@ -908, +908 @@

  <entity name="jc"
          processor="LineEntityProcessor"
          acceptLineRegex="^.*\.xml$"
-         omitLineRegex="/obsolete"
+         skipLineRegex="/obsolete"
          url="file:///Volumes/ts/files.lis"
          rootEntity="false"
          dataSource="myURIreader1"

Mime
View raw message