[#168,docs/backend][m]: major extension to backend tutorial to give examples of most backends.
This commit is contained in:
13
_includes/example-backends-elasticsearch.js
Normal file
13
_includes/example-backends-elasticsearch.js
Normal file
@@ -0,0 +1,13 @@
|
||||
var dataset = new recline.Model.Dataset({
|
||||
url: 'http://datahub.io/dataset/rendition-on-record/ac5a28ea-eb52-4b0a-a399-5dcc1becf9d9/api',
|
||||
backend: 'elasticsearch'
|
||||
});
|
||||
|
||||
dataset.fetch();
|
||||
|
||||
// For demonstrations purposes display the data in a grid
|
||||
var grid = new recline.View.SlickGrid({
|
||||
model: dataset
|
||||
});
|
||||
$('#my-elasticsearch').append(grid.el);
|
||||
|
||||
Reference in New Issue
Block a user