@@ -6,14 +6,12 @@ that match the query. The query can either be provided using a simple
66<<search-uri-request,query string as a parameter>>, or using a
77<<search-request-body,request body>>.
88
9- ["float",id="search-multi-index-type "]
10- === Multi-Index, Multi-Type
9+ ["float",id="search-multi-index"]
10+ === Multi-Index
1111
12- All search APIs can be applied across multiple types within an index, and
13- across multiple indices with support for the
14- <<multi-index,multi index syntax>>. For
15- example, we can search on all documents across all types within the
16- twitter index:
12+ All search APIs can be applied across multiple indices with support for
13+ the <<multi-index,multi index syntax>>. For
14+ example, we can search on all documents within the twitter index:
1715
1816[source,js]
1917--------------------------------------------------
@@ -22,17 +20,8 @@ GET /twitter/_search?q=user:kimchy
2220// CONSOLE
2321// TEST[setup:twitter]
2422
25- We can also search within specific types:
26-
27- [source,js]
28- --------------------------------------------------
29- GET /twitter/tweet,user/_search?q=user:kimchy
30- --------------------------------------------------
31- // CONSOLE
32- // TEST[setup:twitter]
33-
34- We can also search all tweets with a certain tag across several indices
35- (for example, when each user has his own index):
23+ We can also search all documents with a certain tag across several indices
24+ (for example, when there is one index per user):
3625
3726[source,js]
3827--------------------------------------------------
@@ -41,21 +30,11 @@ GET /kimchy,elasticsearch/_search?q=tag:wow
4130// CONSOLE
4231// TEST[s/^/PUT kimchy\nPUT elasticsearch\n/]
4332
44- Or we can search all tweets across all available indices using `_all`
45- placeholder:
33+ Or we can search across all available indices using `_all`:
4634
4735[source,js]
48- --------------------------------------------------
36+ ---------------------------------------------------
4937GET /_all/_search?q=tag:wow
50- --------------------------------------------------
38+ ---------------------------------------------------
5139// CONSOLE
52- // TEST[setup:twitter]
53-
54- Or even search across all indices and all types:
55-
56- [source,js]
57- --------------------------------------------------
58- GET /_search?q=tag:wow
59- --------------------------------------------------
60- // CONSOLE
61- // TEST[setup:twitter]
40+ // TEST[setup:twitter]
0 commit comments