User Tools

Site Tools


self_hosted_search_engine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
self_hosted_search_engine [2016/05/31 22:03]
sgripon [Calaca]
self_hosted_search_engine [2016/11/06 12:18]
sgripon [Calaca]
Line 55: Line 55:
 After a few seconds, you can check elasticsearch is running by accessing http://​localhost:​9200:​ After a few seconds, you can check elasticsearch is running by accessing http://​localhost:​9200:​
  
-<​code>​+<​code ​javascript>
 { {
   "​status"​ : 200,   "​status"​ : 200,
Line 119: Line 119:
 Then configure calaca for your elasticsearch instance. This is done in file //​calaca/​_site/​js/​config.js//:​ Then configure calaca for your elasticsearch instance. This is done in file //​calaca/​_site/​js/​config.js//:​
  
-<​file ​js config.js>​+<​file ​javascript ​config.js>​
 var CALACA_CONFIGS = { var CALACA_CONFIGS = {
  url: "​http://​localhost:​9200",​  url: "​http://​localhost:​9200",​
Line 137: Line 137:
 <file html index.html>​ <file html index.html>​
 ... ...
-    ​<article class='​result'​ ng-repeat='​result in results track by $id(result)'>​ +<article class='​result'​ ng-repeat='​result in results track by $id(result)'>​ 
-        <​h2><​a href="​{{result.url}}">​{{result.title || result.url}}</​a></​h2>​ +   ​<​h2><​a href="​{{result.url}}">​{{result.title || result.url}}</​a></​h2>​ 
-      <​p>​{{result.content}}</​p>​ +   ​<​p>​{{result.content}}</​p>​ 
-    </​article>​+</​article>​
 ... ...
 </​file>​ </​file>​
self_hosted_search_engine.txt · Last modified: 2016/11/06 12:18 by sgripon