Skip to content

Commit a972933

Browse files
author
Roman Sanchez
committed
v1.0.1 - see CHANGELOG
1 parent 3b88ab7 commit a972933

5 files changed

Lines changed: 41 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
## 1.0.1 - Jul 24 2014
4+
- Add documentation to show how to configure results.
5+
- Update the required configs/documentation
6+
- Update css class names
7+
- Add monitoring plug
8+
- Add changelog
9+
10+
## 1.0.0 - Jun 15 2014
11+
- Initial release

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,44 @@
11
Calaca
22
=========
33

4-
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.
5-
- Quick and easy search
4+
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.
5+
- Quick, easy and instant search
66
- Looks good
77
- Minimum configs required
88

99

1010
![calaca-screenshot](https://s3.amazonaws.com/calaca/calaca.png "Calaca screenshot")
1111

12-
Dependencies
12+
Dependencies(Already included)
1313
----
1414
- angular.js
1515
- elasticsearch.angular.js
1616

1717
Get Started
1818
----
19-
In **calaca.js** change the configs to match your ElasticSearch cluster.
19+
In **calaca.js** change the configs to match your Elasticsearch cluster.
2020
```js
2121
/* Configs */
2222
var indexName = "name";
2323
var docType = "type";
2424
var maxResultsSize = 10;
2525
var host = "localhost";
26-
var port = "9200";
26+
var port = 9200;
27+
```
28+
29+
In **index.html** append to ```result.``` the field name you want to show from your es document.
30+
Using dot notation, you can access nested fields like such ```result.transactions.time ```.
31+
```html
32+
<h2>{{result.name}}</h2>
33+
<p>{{result.description}}</p>
2734
```
2835

2936
Styling
3037
----
3138
You can easily change the look and feel of Calaca by implementing the below CSS classes.
3239
```css
3340
.title
34-
.searchBox
41+
.search-box
3542
.no-results
3643
.results
3744
.result
@@ -41,7 +48,7 @@ You can easily change the look and feel of Calaca by implementing the below CSS
4148
Version
4249
----
4350

44-
1.0.0
51+
1.0.1
4552

4653
Author
4754
----
@@ -51,6 +58,8 @@ Roman Sanchez
5158

5259
[@rooomansanchez]
5360

61+
Need Elasticsearch cluster monitoring and alerting? Check out [Pulse].
62+
5463

5564
License
5665
----
@@ -59,3 +68,4 @@ MIT
5968

6069
[romansanchez.me]:http://romansanchez.me
6170
[@rooomansanchez]:http://twitter.com/rooomansanchez
71+
[Pulse]:https://sweltering-fire-2945.firebaseapp.com/

css/calaca.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Calaca
3-
* Simple search client for ElasticSearch
3+
* Simple search client for Elasticsearch
44
* https://github.com/romansanchez/Calaca
55
* Author - Roman Sanchez
66
* http://romansanchez.me
@@ -32,15 +32,15 @@ body {
3232
text-align: center;
3333
padding-top: 70px;
3434
}
35-
.searchBoxContainer {
35+
.search-box-container {
3636
width: 860px;
3737
height: 69px;
3838
margin-left: auto;
3939
margin-right: auto;
4040
margin-top: 60px;
4141
border-radius: 5px;
4242
}
43-
.searchBox {
43+
.search-box {
4444
width: 812px;
4545
height: 100%;
4646
color: #000;
@@ -69,7 +69,7 @@ body {
6969
/* Header */
7070

7171
/* Results */
72-
.resultsContainer {
72+
.results-container {
7373
height: 100%;
7474
width: 100%;
7575
padding-top: 30px;
@@ -87,6 +87,9 @@ body {
8787
background-color: #fff;
8888
border-radius: 5px;
8989
}
90+
/* Results */
91+
92+
/* Result */
9093
.result {
9194
margin-bottom: 10px;
9295
padding: 10px;
@@ -97,5 +100,5 @@ body {
97100
color: #ed4877;
98101
margin-bottom: 5px;
99102
}
100-
/* Results */
103+
/* Result */
101104

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang='en'>
33
<head>
44
<meta charset='utf-8'>
5-
<title>Calaca | Simple search client for ElasticSearch</title>
5+
<title>Calaca | Simple search client for Elasticsearch</title>
66
<link rel='stylesheet' href='css/reset.css'>
77
<link rel='stylesheet' href='css/calaca.css'>
88
<!--[if IE]>
@@ -14,13 +14,13 @@
1414
<!-- Title and search box -->
1515
<header class="jumbotron">
1616
<h1 class="title">Calaca</h1>
17-
<div class="searchBoxContainer">
18-
<input type='text' class="searchBox" placeholder="Search" autofocus ng-model='query' ng-change="search()">
17+
<div class="search-box-container">
18+
<input type='text' class="search-box" placeholder="Search" autofocus ng-model='query' ng-change="search()">
1919
</div>
2020
</header>
2121

2222
<!-- Listing of search results -->
23-
<main class="resultsContainer">
23+
<main class="results-container">
2424
<section class='results'>
2525
<p class='no-results' ng-hide='results.length'>No Results</p>
2626
<article class='result' ng-cloak ng-repeat='result in results track by $id(result)'>

js/calaca.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var indexName = "name";
1515
var docType = "type";
1616
var maxResultsSize = 10;
1717
var host = "localhost";
18-
var port = "9200";
18+
var port = 9200;
1919

2020
/* Module */
2121
window.Calaca = angular.module('calaca', ['elasticsearch'],
@@ -93,6 +93,5 @@ Calaca.controller('calacaCtrl', ['calacaService', '$scope', '$location', functio
9393
});
9494
};
9595

96-
9796
}]
9897
);

0 commit comments

Comments
 (0)