Secondary index code samples

Work in progress

- [ ] Ruby
- [ ] Python
- [ ] Python
- [ ] Erlang