-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelastic.html
41 lines (38 loc) · 1.58 KB
/
elastic.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>Dateisuche mit ElasticSearch</title>
<script src="vue.js" ></script>
<link href="elastic.css" rel="stylesheet">
<link href="fonts.css" rel="stylesheet">
<h1>Suche mit FSSearch</h1>
<div id="app">
<!-- <label for="search">Search</label> -->
<div class="flex-row"> <input type="search" id="search" v-model="searchText"
@keyup.enter="doSearch" @keyup.83.stop autofocus tabindex="1"
placeholder="Type 's' to search" autofocus>
<div class="flex-ini-box">
<input id="items" type="number" name="items" step="1" min="1"
v-bind:value="hitsPerPage"
size="4" @keyup.enter="updateHitsPerPage"> hits per Page
</div>
</div>
<div id="hits">
<ul>
<li v-for="res in results">
<a class="list-link" :href="res.path" target="_blank" rel="noopener noreferrer">
<span class="description-title">{{res.title}}</span><br>
<span class="description-description"><span v-html="res.content"></span></span><br>
<span class="path">{{res.path}}</span><br>
</a>
</ul>
</div>
<p class="page-button-group">
<button v-for="i in totalPages" @click="doSearch($event, (i-1)*hitsPerPage)"
:disabled="(i-1)===currentPage" >{{i}}</button>
</p>
Showing {{results.length}} of {{totalFound}} documents matching your
query.<br>
Start at {{currentPage}}.
</p>
</div>
<script src="elastic.js"></script>