From 7f164ca4ca50a9706fa4cc253803e3d105f04742 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 17 Oct 2014 18:10:53 +0900 Subject: [PATCH] Display restaraunt IDs instead of search enumerator --- client/html/index.html | 4 ++-- server/search.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/html/index.html b/client/html/index.html index f3a12e5..65aa053 100644 --- a/client/html/index.html +++ b/client/html/index.html @@ -141,14 +141,14 @@ - + {{#each results}} - + diff --git a/server/search.js b/server/search.js index 80a1e13..d629cc8 100644 --- a/server/search.js +++ b/server/search.js @@ -113,7 +113,8 @@ function findRecords(data, searchParams, minScore) { results.push({ name: record.name, url: 'http://www.tripadvisor.com' + record.relativeUrl, - score: score + score: score, + id: record.id }); });
#Id Name Score
{{@index}}{{id}} {{name}} {{score}}