You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-11Lines changed: 22 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,11 @@ Calaca
4
4
Calaca is a beautiful, easy to use, search UI for Elasticsearch. It's made for you if you need to do quick searches for your documents and don't need anything hard to setup, use.
5
5
- Quick, easy and instant search
6
6
- Looks good
7
-
- Minimum configs required
8
-
- Displays hits count and time taken for query
9
-
- Supports pagination
10
-
- Full support for lucene queries(boolean, range, etc)
7
+
- Simple configs
8
+
- Query metrics(hits counts, time took)
9
+
- Pagination
10
+
- Lucene queries(boolean, range, etc)
11
+
- Plugin install or stand-alone
11
12
12
13
Demo
13
14
=========
@@ -24,12 +25,11 @@ Get Started
24
25
In **config.js** change the configs to match your Elasticsearch cluster.
25
26
```js
26
27
/* Configs */
27
-
var indexName ="name"; //Ex: twitter
28
-
var docType ="type"; //Ex: tweet
29
-
var maxResultsSize =10;
30
-
var host ="localhost"; //Ex: ec2-123-aws.com
31
-
var port =9200;
32
-
var protocol =""; //Default: same as browser
28
+
url:"http://localhost:9200"//Cluster http url
29
+
index_name:"twitter"//Index name or comma-separated list
30
+
type:"tweet"//Type
31
+
size:10//Number of results displayed at a time
32
+
search_delay:500//Delay between actual search request
33
33
```
34
34
35
35
In **index.html** append to ```result.``` the field name you want to show from your es document.
@@ -39,6 +39,13 @@ Using dot notation, you can access nested fields like such ```result.transaction
39
39
<p>{{result.description}}</p>
40
40
```
41
41
42
+
Plugin
43
+
----
44
+
You can also install as an elasticsearch plugin. Same config updates are required to **config.js** and **index.html**.
45
+
```bash
46
+
bin/plugin -i romansanchez/Calaca
47
+
```
48
+
42
49
Styling
43
50
----
44
51
You can easily change the look and feel of Calaca by implementing the below CSS classes.
@@ -50,11 +57,15 @@ You can easily change the look and feel of Calaca by implementing the below CSS
50
57
.result
51
58
```
52
59
60
+
Common Issues
61
+
----
62
+
* No 'Access-Control-Allow-Origin' header is present on the requested resource.
63
+
* Add ```http.cors.enabled: true``` to your ```elasticsearch.yml```
0 commit comments