Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. Using the IntelliScript Editor
  7. XMap
  8. Libraries
  9. Schema Object
  10. Command Line Interface
  11. Scripts
  12. Parsers
  13. Script Ports
  14. Document Processors
  15. Formats
  16. Data Holders
  17. Anchors
  18. Transformers
  19. Actions
  20. Serializers
  21. Mappers
  22. Locators, Keys, and Indexing
  23. Streamers
  24. Validators, Notifications, and Failure Handling
  25. Validation Rules
  26. Custom Script Components

User Guide

User Guide

Online Sample

Online Sample

For an online sample of this anchor, open the project
samples\Projects\persistent_search\persistent_search.cmw
.
The sample illustrates a
Group
that is configured with the
on_partial_match = skip
property. The
Group
contains two
Marker
anchors:
  • The first
    Marker
    searches for the text
    A
    .
  • The second
    Marker
    searches for a string containing any number of
    *
    characters. It has the
    adjacent
    property, which means that it must be adjacent to the first
    Marker
    .
On the first pass, the
Group
finds an
A
character at the beginning of the source document. It does not find the second
Marker
adjacent to the
A
character, however.
The
Group
reduces its search scope by eliminating the first
A
character, and searches again for the two adjacent
Marker
anchors. It continues this procedure until it successfully finds a string
A*
, which contains the adjacent
Marker
anchors.
You can observe the behavior in the event log. The log records that the
Group
fails on the first two trials and succeeds on the third.
Try experimenting with the
on_partial_match
and
adjacent
settings. You can see the effect in the color coding of the example source.
You can also try running the sample, although the result file is empty because the Parser does not contain
Content
anchors. If you set
on_partial_match = fail
, you can observe in the event log that the Parser fails, because the
Group
cannot find the adjacent anchors.

0 COMMENTS

We’d like to hear from you!