Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added additional sort example #468

Closed
wants to merge 1 commit into from

2 participants

@mdpatrick

Very prominent feature of elasticsearch is that it allows multi-field sorting. Added it to readme for tire.

@mdpatrick mdpatrick Added additional sort example
Very prominent feature of elasticsearch is that it allows multi-field sorting. Added it to readme for tire.
e5b96f5
@karmi
Owner

Yes, maybe, but definitely without the comment... Still on the fence with this. We don't want to explain everything about elasticsearch in the README, do we?

@karmi karmi closed this
@mdpatrick

Would you be OK with me re-submitting the PR with the change I made less the comment?

@karmi
Owner

@mdpatrick Absolutely, if you can add the documentation into those places (preferably in YARDoc format, see eg. https://github.com/karmi/tire/blob/master/lib/tire/alias.rb)!

I'm sorry but I don't wanna stretch the README too far -- some people have trouble reading it as it is :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 4, 2012
  1. @mdpatrick

    Added additional sort example

    mdpatrick authored
    Very prominent feature of elasticsearch is that it allows multi-field sorting. Added it to readme for tire.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.markdown
View
2  README.markdown
@@ -409,7 +409,7 @@ advanced facet aggregation, highlighting, etc:
Article.search do
query { string 'love' }
facet('timeline') { date :published_on, :interval => 'month' }
- sort { by :published_on, 'desc' }
+ sort { by [{:published_on => 'desc'}, {:_score => 'asc'}] } # multi-sort criteria is permissable
end
```
Something went wrong with that request. Please try again.