Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4e85fa3

Browse files
Updates aggregation interval to calendar_interval
1 parent 136d4f3 commit 4e85fa3

File tree

1 file changed

+1
-2
lines changed
  • elasticsearch-model/spec/elasticsearch/model/adapters/active_record

1 file changed

+1
-2
lines changed

‎elasticsearch-model/spec/elasticsearch/model/adapters/active_record/basic_spec.rb‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,10 @@
301301
end
302302

303303
describe 'access to the response via methods' do
304-
305304
let(:search_result) do
306305
Article.search(query: { match: { title: { query: 'test' } } },
307306
aggregations: {
308-
dates: { date_histogram: { field: 'created_at', interval: 'hour' } },
307+
dates: { date_histogram: { field: 'created_at', calendar_interval: 'hour' } },
309308
clicks: { global: {}, aggregations: { min: { min: { field: 'clicks' } } } }
310309
},
311310
suggest: { text: 'tezt', title: { term: { field: 'title', suggest_mode: 'always' } } })

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /