Search with version should set the version value in options #190

Closed
wants to merge 1 commit into from

3 participants

@gedwards

Adding 'version' to the DSL. Includes unit and integration tests. (thanks for Tire and Elasticsearch!)

@karmi karmi added a commit that closed this pull request Mar 1, 2012
@greglearns greglearns Added a `Search#version` method to control returning the `version` fi…
…eld in hits

Closes #190
2bf5585
@karmi karmi closed this in 2bf5585 Mar 1, 2012
@karmi
Owner

Greg, thanks, the delay with merging is embarrasing, sorry. Pushed.

(By the way, I think a better way would be an API like Tire.search 'an_index', version: true do ... end, but it does not matter at the moment. We have to sort out the issue with search params anyway, and transfer the version option there once it's done...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment