Skip to content

Instantly share code, notes, and snippets.

@peaeater
Created November 12, 2014 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peaeater/5708c37fd5a39d884a0f to your computer and use it in GitHub Desktop.
Save peaeater/5708c37fd5a39d884a0f to your computer and use it in GitHub Desktop.
Sample Solr DIH entity demonstrating the order in which transformers act.
<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