Commit e9b702459fafafed4aae13f6bb44f8362497fe35

Authored by Andrew Kane
1 parent 45ffbf46

Added note about sort options - closes #210

Showing 2 changed files with 6 additions and 0 deletions   Show diff stats
README.md
... ... @@ -108,6 +108,8 @@ Order
108 108 order: {_score: :desc} # most relevant first - default
109 109 ```
110 110  
  111 +[All of these sort options are supported](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html)
  112 +
111 113 Limit / offset
112 114  
113 115 ```ruby
... ...
test/sql_test.rb
... ... @@ -198,6 +198,10 @@ class TestSql < Minitest::Unit::TestCase
198 198 assert_order "product", ["Product A", "Product B", "Product C"], order: {color: :asc, store_id: :desc}
199 199 end
200 200  
  201 + def test_order_ignore_unmapped
  202 + assert_order "product", [], order: {not_mapped: {ignore_unmapped: true}}, conversions: false
  203 + end
  204 +
201 205 def test_partial
202 206 store_names ["Honey"]
203 207 assert_search "fresh honey", []
... ...