Aconex/elasticsearch-head — pull request #39 by joshcanfield (2013-01-30 00:11:46+00:00)
Title: Fixed Structured Query with multiple "should" clauses

When clause is added the code attempts to remove the default clause. Remove clause wasn't checking the return from indexOf, thus when -1 was returned it'd remove a clause from the end.