Created
February 11, 2015 20:56
-
-
Save jrochkind/22ee1b97a3cb581f9138 to your computer and use it in GitHub Desktop.
Here's how you get the leader in traject
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
to_field "something" do |record, accumulator| | |
leader = record.leader | |
# The only reason you want the leader is becuase you are going to do | |
# SOMETHING with it, right? You're not just gonna index the leader, are ya? | |
output = do_something_to(leader) | |
accumulator << output | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment