tests for this are on elasticsearch branch (due to huge refactoring there) and will come later by merge