No Results
diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..9d3057a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changelog + +## 1.0.1 - Jul 24 2014 +- Add documentation to show how to configure results. +- Update the required configs/documentation +- Update css class names +- Add monitoring plug +- Add changelog + +## 1.0.0 - Jun 15 2014 +- Initial release \ No newline at end of file diff --git a/README.md b/README.md index 5a1d2e1..6111434 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,36 @@ Calaca ========= -Calaca is a simple, easy to use search client for ElasticSearch. It's made for you if all you need to do is quick searches for your documents and don't need anything fancy or hard to setup, use. - - Quick and easy search +Calaca is a simple, easy to use search client for Elasticsearch. It's made for you if all you need to do is quick searches for your documents and don't need anything fancy or hard to setup, use. + - Quick, easy and instant search - Looks good - Minimum configs required ![calaca-screenshot](https://s3.amazonaws.com/calaca/calaca.png "Calaca screenshot") -Dependencies +Dependencies(Already included) ---- - angular.js - elasticsearch.angular.js Get Started ---- -In **calaca.js** change the configs to match your ElasticSearch cluster. +In **calaca.js** change the configs to match your Elasticsearch cluster. ```js /* Configs */ var indexName = "name"; var docType = "type"; var maxResultsSize = 10; var host = "localhost"; -var port = "9200"; +var port = 9200; +``` + +In **index.html** append to ```result.``` the field name you want to show from your es document. +Using dot notation, you can access nested fields like such ```result.transactions.time ```. +```html +
{{result.description}}
``` Styling @@ -31,7 +38,7 @@ Styling You can easily change the look and feel of Calaca by implementing the below CSS classes. ```css .title -.searchBox +.search-box .no-results .results .result @@ -41,7 +48,7 @@ You can easily change the look and feel of Calaca by implementing the below CSS Version ---- -1.0.0 +1.0.1 Author ---- @@ -51,6 +58,8 @@ Roman Sanchez [@rooomansanchez] +Need Elasticsearch cluster monitoring and alerting? Check out [Pulse]. + License ---- @@ -59,3 +68,4 @@ MIT [romansanchez.me]:http://romansanchez.me [@rooomansanchez]:http://twitter.com/rooomansanchez +[Pulse]:https://sweltering-fire-2945.firebaseapp.com/ diff --git a/css/calaca.css b/css/calaca.css index c31f7b6..7d0427b 100644 --- a/css/calaca.css +++ b/css/calaca.css @@ -1,6 +1,6 @@ /* * Calaca - * Simple search client for ElasticSearch + * Simple search client for Elasticsearch * https://github.com/romansanchez/Calaca * Author - Roman Sanchez * http://romansanchez.me @@ -32,7 +32,7 @@ body { text-align: center; padding-top: 70px; } -.searchBoxContainer { +.search-box-container { width: 860px; height: 69px; margin-left: auto; @@ -40,7 +40,7 @@ body { margin-top: 60px; border-radius: 5px; } -.searchBox { +.search-box { width: 812px; height: 100%; color: #000; @@ -69,7 +69,7 @@ body { /* Header */ /* Results */ -.resultsContainer { +.results-container { height: 100%; width: 100%; padding-top: 30px; @@ -87,6 +87,9 @@ body { background-color: #fff; border-radius: 5px; } +/* Results */ + +/* Result */ .result { margin-bottom: 10px; padding: 10px; @@ -97,5 +100,5 @@ body { color: #ed4877; margin-bottom: 5px; } -/* Results */ +/* Result */ diff --git a/index.html b/index.html index 97945be..359ff9e 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ -No Results