You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2012/12/27 22:19:44 UTC

[Solr Wiki] Update of "DataImportHandler" by PrashantPunjabi

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"