Finishing touches

This commit is contained in:
Sijmen 2018-10-29 01:03:03 +01:00
parent e94ef6a7a5
commit 7cb31bb8d8
2 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ def index():
"chips": { "chips": {
"significant_terms": { "significant_terms": {
"field": "body", "field": "body",
"mutual_information": {"include_negatives": True}, "mutual_information": {},
"size": 40, "size": 40,
}, },
} }

View file

@ -2,7 +2,7 @@
<div class="body"> <div class="body">
<div class="chips"> <div class="chips">
<div v-for="chip in chips" v-bind:key="chip.key" class="chip" @click="appendToQuery(chip.key)"> <div v-for="chip in chips" v-bind:key="chip.key" class="chip" @click="appendToQuery(chip.key)">
{{chip.key}} ({{chip.count}}) {{chip.key}}
</div> </div>
</div> </div>
@ -164,7 +164,7 @@ export default class ResultBody extends Vue {
} }
appendToQuery(value) { appendToQuery(value) {
this.$emit("input", `${this.value} AND ${value}`); this.$emit("input", `${this.value} +${value}`);
} }
async switchPage(page) { async switchPage(page) {