Switch branches/tags
Nothing to show
Find file Copy path
a6787a4 Jul 22, 2015
1 contributor

Users who have contributed to this file

79 lines (74 sloc) 3.29 KB
<!DOCTYPE html>
<title>ElasticUI Demo</title>
<link rel="stylesheet" href="" />
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
.sidebar {
position: fixed;
top: 0;
bottom: 0;
z-index: 1000;
display: block;
padding: 20px;
overflow-x: hidden;
overflow-y: auto;
background-color: #f5f5f5;
border-right: 1px solid #eee;
.instructions {
display: block;
margin: 0 auto;
width: 450px;
.module('tutorial', ['elasticui'])
.constant('euiHost', 'http://localhost:9200'); // ACTION: change to cluster address
<body ng-app="tutorial" eui-index="'CHANGE_TO_INDEX'"><!-- ACTION: change to index name -->
<div class="container-fluid">
<div class="row">
<div class="col-xs-3 sidebar">
<eui-searchbox field="'CHANGE_TO_FIELD'"></eui-searchbox> <!-- ACTION: change to field to search on -->
<h3>Single select facet</h3>
<eui-singleselect field="'CHANGE_TO_FIELD'" size="5"></eui-singleselect> <!-- ACTION: change to field to use as facet -->
<h3>Multi select facet</h3>
<eui-checklist field="'CHANGE_TO_FIELD'" size="10"></eui-checklist> <!-- ACTION: change to field to use as facet -->
<h3>Results Per Page</h3>
<select ng-model="indexVM.pageSize">
<option ng-repeat="item in [10, 20, 50, 100]">{{item}}</option>
<div class="col-xs-9 col-xs-offset-3 main">
<div class="instructions panel panel-primary">
<!-- README -->
<div class="panel-heading">Getting started with the Demo</div>
<div class="panel-body">
Instructions, modify this file according to the following:
<li>Set the constant euiHost in &lt;head&gt; to point to your cluster</li>
<li>Change eui-index on &lt;body&gt; tag to the name of your index</li>
<li>Set the field attributes on the facets in the sidebar to meaningful fields of your data</li>
<li ng-repeat="doc in indexVM.results.hits.hits">
{{doc._source | json | limitTo: 500}} <!-- OPTIONAL: display more meaningful data instead of json -->