Refactoring.
Bool query.
Renamed put and post to index, in test suite.