fixed format
This commit is contained in:
parent
24c19169f2
commit
808fc57af9
|
@ -28,7 +28,6 @@ class ESConnector(object):
|
||||||
self.index_host = ES_HOST
|
self.index_host = ES_HOST
|
||||||
self.client = Elasticsearch(hosts=self.index_host, timeout=600000)
|
self.client = Elasticsearch(hosts=self.index_host, timeout=600000)
|
||||||
|
|
||||||
|
|
||||||
def query_after(self, query_string=None, start=0, i='propagation-after'):
|
def query_after(self, query_string=None, start=0, i='propagation-after'):
|
||||||
s = Search(using=self.client, index=i)
|
s = Search(using=self.client, index=i)
|
||||||
if query_string is not None:
|
if query_string is not None:
|
||||||
|
|
|
@ -60,10 +60,11 @@
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" class="form-control" v-model="query" placeholder="Your query terms..."
|
<input type="text" class="form-control" v-model="query" placeholder="Your query terms..."
|
||||||
aria-label="Your query terms..." aria-describedby="button-addon2">
|
aria-label="Your query terms..." aria-describedby="button-addon2">
|
||||||
<select class="form-control col-md-3" aria-describedby="button-addon2" v-model="index" v-on:change="switch_index">
|
<select class="form-control col-md-3" aria-describedby="button-addon2" v-model="index"
|
||||||
<option v-bind:value="'propagation-after'">After propagation</option>
|
v-on:change="switch_index">
|
||||||
<option v-bind:value="'propagation-before'">Before propagation</option>
|
<option v-bind:value="'propagation-after'">After propagation</option>
|
||||||
</select>
|
<option v-bind:value="'propagation-before'">Before propagation</option>
|
||||||
|
</select>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-outline-secondary" type="button" id="button-addon2"
|
<button class="btn btn-outline-secondary" type="button" id="button-addon2"
|
||||||
v-on:click="first_query">Search!</button>
|
v-on:click="first_query">Search!</button>
|
||||||
|
|
Loading…
Reference in New Issue