We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a05f10 commit 99107a8Copy full SHA for 99107a8
search.html
@@ -217,8 +217,7 @@ <h3 style='margin-top:0px'>Document structure:</h3>
217
console.log(JSON.stringify(result));
218
$("#result").html(`<br/>Hits: ${result.hits.total} <hr/>`);
219
var hits = result.hits.hits;
220
- for (i in hits) {
221
- var hit = hits[i];
+ for (let hit of hits) {
222
var link = `<a href='http://localhost:9200/loc/work/${hit._id}/_source'>${hit._source.label}</a>`;
223
$("#result").append(link + '<hr/>');
224
}
0 commit comments