Commit 1308b39d authored by Daniel Suarez Souto's avatar Daniel Suarez Souto
Browse files

Fixed but with text queries

parent f68ca03e
Pipeline #1387 passed with stages
in 58 seconds
......@@ -13,7 +13,6 @@
<link rel="import" href="/bower_components/paper-menu/paper-menu.html">
<link rel="import" href="/bower_components/paper-autocomplete/paper-autocomplete.html">
<link rel="import" href="/elements/entities-chart/entities-chart.html">
<link rel="import" href="/elements/categories-chart/categories-chart.html">
<link rel="import" href="/elements/people-chart/people-chart.html">
<link rel="import" href="/elements/news-chart/news-chart.html">
<link rel="import" href="/elements/propaganda-chart/propaganda-chart.html">
......@@ -118,7 +117,10 @@
icon="icons:list"
param="{{param}}"
id="entitieschart"
filters="{{filters}}">
filters="{{filters}}"
legend='[{"name":"Organization","type":"schema:Organization","color":"#dd4b39"},
{"name":"Place","type":"schema:Place","color":"#ff9900"},
{"name": "Person","type":"schema:Person","color":"#00c0ef"}]'>
</entities-chart>
</div>
<div class="col-md-6">
......@@ -129,6 +131,7 @@
icon="icons:list"
param="{{param}}"
id="categorieschart"
color = "#505050"
filters="{{filters}}">
</entities-chart>
......@@ -391,7 +394,7 @@ H2020 RIA Action Grant No. 740934 under the call SEC-06-FCT-2016 — Developing
}
else {
console.log("Filter")
this.push('filters', {terms: {'schema:articleBody': [this.query]}});
this.push('filters', {terms: {'schema:articleBody': this.query.toLowerCase().split(" ")}});
//this.search={"schema:articleBody":{"query":this.query,"operator":"and"}}
this._query()
}
......
......@@ -13,7 +13,6 @@
<link rel="import" href="/bower_components/paper-menu/paper-menu.html">
<link rel="import" href="/bower_components/paper-autocomplete/paper-autocomplete.html">
<link rel="import" href="/elements/entities-chart/entities-chart.html">
<link rel="import" href="/elements/categories-chart/categories-chart.html">
<link rel="import" href="/elements/people-chart/people-chart.html">
<link rel="import" href="/elements/news-chart/news-chart.html">
<link rel="import" href="/elements/propaganda-chart/propaganda-chart.html">
......@@ -118,7 +117,10 @@
icon="icons:list"
param="{{param}}"
id="entitieschart"
filters="{{filters}}">
filters="{{filters}}"
legend='[{"name":"Organization","type":"schema:Organization","color":"#dd4b39"},
{"name":"Place","type":"schema:Place","color":"#ff9900"},
{"name": "Person","type":"schema:Person","color":"#00c0ef"}]'>
</entities-chart>
</div>
<div class="col-md-6">
......@@ -129,6 +131,7 @@
icon="icons:list"
param="{{param}}"
id="categorieschart"
color = "#505050"
filters="{{filters}}">
</entities-chart>
......@@ -391,7 +394,7 @@ H2020 RIA Action Grant No. 740934 under the call SEC-06-FCT-2016 — Developing
}
else {
console.log("Filter")
this.push('filters', {terms: {'schema:articleBody': [this.query]}});
this.push('filters', {terms: {'schema:articleBody': this.query.toLowerCase().split(" ")}});
//this.search={"schema:articleBody":{"query":this.query,"operator":"and"}}
this._query()
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment