split input into different indexes based on tag name
fix tests
Merge pull request #1 from shareaholic/index_splice

split input into different indexes based on tag name