ruflin/Elastica — pull request #216 by christeredvartsen (2012-07-12 13:31:47+00:00)
Title: Test case for the query builder

This PR includes a test case for `Elastica_Query_Builder`. Some improvements to the query builder itself has been made as a result of the test case:

* `field()` now works with strings as well
* added `minimumNumberShouldMatch()` and `tieBreakerMultiplier()` to reflect the parameters used in the generated JSON string. `minimumShouldMatch()` and `tieBreaker()` have been kept as aliases to the new methods to not break BC.
* added `sortFields()` that can be used when sorting on several fields.

I also included a small fix to the `Elastica_Transport_MemcacheTest` test case making it skip the tests if `pecl/memcache` is not installed.