Created
November 12, 2014 19:58
-
-
Save peaeater/5708c37fd5a39d884a0f to your computer and use it in GitHub Desktop.
Sample Solr DIH entity demonstrating the order in which transformers act.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<entity | |
name="sample" | |
transformer="RegexTransformer,TemplateTransformer"> | |
<field column="test_ignored" template="BLAH" /> | |
<field column="test_ignored" sourceColName="id" regex="(.+)" /> | |
<!-- | |
test_ignored will equal 'BLAH' because TemplateTransformer acts last, | |
even though it is written first. | |
--> | |
</entity> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment