aparo/pyes — pull request #140 by kaitlin (2011-12-16 19:50:59+00:00)
Title: Changed check for thrift vs. http connection

We use a non standard port for ES but wanted to connect over http. I changed the hardcoded
```if port.starswith("92"):```

to
```if self.connection_type='http':```

and added a connection_type variable in the constructor that is 'http' by default.