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.textile
+22-20Lines changed: 22 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,16 @@ Elasticsearch is a distributed RESTful search engine built for the cloud. Featur
10
10
** Each index is fully sharded with a configurable number of shards.
11
11
** Each shard can have one or more replicas.
12
12
** Read / Search operations performed on any of the replica shards.
13
-
* Multi Tenant with Multi Types.
13
+
* Multi Tenant.
14
14
** Support for more than one index.
15
-
** Support for more than one type per index.
16
15
** Index level configuration (number of shards, index storage, ...).
17
16
* Various set of APIs
18
17
** HTTP RESTful API
19
18
** Native Java API.
20
19
** All APIs perform automatic node operation rerouting.
21
20
* Document oriented
22
21
** No need for upfront schema definition.
23
-
** Schema can be defined per type for customization of the indexing process.
22
+
** Schema can be defined for customization of the indexing process.
24
23
* Reliable, Asynchronous Write Behind for long term persistency.
25
24
* (Near) Real Time Search.
26
25
* Built on top of Lucene
@@ -47,32 +46,37 @@ h3. Installation
47
46
48
47
h3. Indexing
49
48
50
-
Let's try and index some twitter like information. First, let's create a twitter user, and add some tweets (the @twitter@ index will be created automatically):
49
+
Let's try and index some twitter like information. First, let's index some tweets (the @twitter@ index will be created automatically):
@@ -125,29 +129,27 @@ h3. Multi Tenant - Indices and Types
125
129
126
130
Man, that twitter index might get big (in this case, index size == valuation). Let's see if we can structure our twitter system a bit differently in order to support such large amounts of data.
127
131
128
-
Elasticsearch supports multiple indices, as well as multiple types per index. In the previous example we used an index called @twitter@, with two types, @user@ and @tweet@.
132
+
Elasticsearch supports multiple indices. In the previous example we used an index called @twitter@ that stored tweets for every user.
129
133
130
134
Another way to define our simple twitter system is to have a different index per user (note, though that each index has an overhead). Here is the indexing curl's in this case:
The above will index information into the @kimchy@ index, with two types, @info@ and @tweet@. Each user will get their own special index.
152
+
The above will index information into the @kimchy@ index. Each user will get their own special index.
151
153
152
154
Complete control on the index level is allowed. As an example, in the above case, we would want to change from the default 5 shards with 1 replica per index, to only 1 shard with 1 replica per index (== per twitter user). Here is how this can be done (the configuration can be in yaml as well):
0 commit comments