Commit a6164d4f authored by Alberto Pascual's avatar Alberto Pascual
Browse files

minor fixes

parent 46726ce8
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<number-chart <number-chart
icon="/images/news.ico" icon="/images/news.ico"
stylebg="bg-yellow" stylebg="bg-yellow"
title="News selected" title="Selected elements"
data="{{data}}"> data="{{data}}">
</number-chart> </number-chart>
</div> </div>
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
</div> </div>
<div> <div>
<yasgui-ui <yasgui-ui
endpoint="http:///krusti.gsi:13030/gsicrawler/query" endpoint="http:///${FUSEKI_ENDPOINT_DASHBOARD}/gsicrawler/query"
queries="{{queries}}"> queries="{{queries}}">
</yasgui-ui> </yasgui-ui>
</div> </div>
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
}) })
people = this.removeDuplicates(people, 'name') people = this.removeDuplicates(people, 'name')
console.log(people) console.log(people)
return people.slice(0,9) return people.slice(0,8)
}, },
removeDuplicates: function(originalArray, prop){ removeDuplicates: function(originalArray, prop){
var newArray = []; var newArray = [];
...@@ -350,7 +350,7 @@ ...@@ -350,7 +350,7 @@
// undocumented params are appended to the query string // undocumented params are appended to the query string
index: "gsicrawler", index: "gsicrawler",
body: { body: {
size: 20, size: 22,
query: { query: {
multi_match:{ multi_match:{
query: this.query, query: this.query,
...@@ -437,7 +437,7 @@ ...@@ -437,7 +437,7 @@
// undocumented params are appended to the query string // undocumented params are appended to the query string
index: "gsicrawler", index: "gsicrawler",
body: { body: {
size: 20, size: 22,
query: { query: {
bool: { bool: {
must: this.filters, must: this.filters,
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<span style="font-size:15px; display:inline-block; vertical-align: middle;">{{news.schema:headline}}</span> <span style="font-size:15px; display:inline-block; vertical-align: middle;">{{news.schema:headline}}</span>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<span style="text-align:center;padding-left: 16%;">{{getDate(news.schema:datePublished)}}</span> <span style="text-align:center;padding-left: 16%;">{{getDate(news.schema:datePublished)}}</span><iron-icon style="left:96%; top: 8px;" icon="icons:search">
</div> </div>
</div> </div>
</div> </div>
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
var results = [] var results = []
//console.log(hits) //console.log(hits)
hits.forEach(function(entry) { hits.forEach(function(entry) {
results.push(entry._source); if(entry._source['schema:author'] != 'twitter') results.push(entry._source);
}); });
//console.log(results) //console.log(results)
that.data = results that.data = results
......
Markdown is supported
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