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
* update rest api docs
fix links
rename index name to index id
* fix headings
* fix gh link in quickwit config
* fix query language link
* fix caution block
Copy file name to clipboardExpand all lines: docs/reference/cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ quickwit index search
213
213
214
214
`--index` ID of the target index.
215
215
`--config` Quickwit config file.
216
-
`--query` Query expressed in natural query language (barack AND obama) OR "president of united states"). Learn more on https://quickwit.io/docs/reference/search-language.
216
+
`--query` Query expressed in natural query language (barack AND obama) OR "president of united states"). Learn more on [query language](./query-language)
217
217
`--max-hits` Maximum number of hits returned. (Default: 20)
218
218
`--start-offset` Offset in the global result set of the first hit returned. (Default: 0)
219
219
`--search-fields` List of fields that Quickwit will search into if the user query does not explicitly target a field in the query. It overrides the default search fields defined in the index config. Space-separated list, e.g. "field1 field2".
Copy file name to clipboardExpand all lines: docs/reference/quickwit-config.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This page documents the Quickwit configuration properties. It is divided into th
9
9
- Indexer properties: defined in `[indexer]` section of the configuration file.
10
10
- Searcher properties: defined in `[searcher]` section of the configuration file.
11
11
12
-
A commented example is accessible here: [quickwit.yaml]([link](https://github.com/quickwit-inc/quickwit/blob/main/config/quickwit.yaml)).
12
+
A commented example is accessible here: [quickwit.yaml](https://github.com/quickwit-inc/quickwit/blob/d9c4fda658baa3bd7291f8abdff8c4b4b56c232f/config/quickwit.yaml).
13
13
14
14
## Common configuration
15
15
@@ -42,4 +42,4 @@ This section contains the configuration options for a Searcher.
42
42
| --- | --- | --- |
43
43
| fast_field_cache_capacity | Fast field cache capacity on a Searcher. | 10G |
44
44
| split_footer_cache_capacity | Split footer cache (it is essentially the hotcache) capacity on a Searcher. | 1G |
45
-
| max_num_concurrent_split_streams | Maximum number of concurrent split stream requests running on a Searcher. | 100 |
45
+
| max_num_concurrent_split_streams | Maximum number of concurrent split stream requests running on a Searcher. | 100 |
Copy file name to clipboardExpand all lines: docs/reference/rest-api.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,17 @@ All the API endpoints start with the `api/v1/` prefix. `v1` indicates that we ar
13
13
The API uses **JSON** encoded as **UTF-8**. The body of POST and PUT requests must be a JSON object and their `Content-Type` header should be set to `application/json; charset=UTF-8`.
14
14
15
15
The response for the /search endpoint is always a JSON object, and the content type is always `application/json; charset=UTF-8.`
16
-
The response for the /search/stream endpoint is a HTTP stream. Depending on the client capability it is a HTTP1.1 (chunked transfer encoded stream)[https://en.wikipedia.org/wiki/Chunked_transfer_encoding] or a HTTP2 stream.
16
+
The response for the /search/stream endpoint is a HTTP stream. Depending on the client capability it is a HTTP1.1 [chunked transfer encoded stream](https://en.wikipedia.org/wiki/Chunked_transfer_encoding) or a HTTP2 stream.
17
17
18
-
## Parameters
18
+
###Parameters
19
19
20
20
Parameters passed in the URL must be properly URL-encoded, using the UTF-8 encoding for non-ASCII characters.
21
21
22
22
```
23
23
GET [..]/search?query=barack%20obama
24
24
```
25
25
26
-
## Error handling
26
+
###Error handling
27
27
28
28
Successful requests return a 2xx HTTP status code.
29
29
@@ -40,16 +40,16 @@ Failed requests return a 4xx HTTP status code. The response body of failed reque
40
40
### Search in an index
41
41
42
42
```
43
-
GET api/v1/indexes/<index name>/search
43
+
GET api/v1/indexes/<index id>/search
44
44
```
45
45
46
-
Search for documents matching a query in the given index `<index name>`.
46
+
Search for documents matching a query in the given index `<index id>`.
47
47
48
48
#### Path variable
49
49
50
50
| Variable | Description |
51
51
| ------------- | ------------- |
52
-
|**index name**| The index name|
52
+
|**index id**| The index id|
53
53
54
54
55
55
#### Get parameters
@@ -65,7 +65,7 @@ Search for documents matching a query in the given index `<index name>`.
65
65
|**format**|`Enum`| The output format. Allowed values are "json" or "prettyjson" |`prettyjson`|
@@ -94,7 +94,7 @@ The endpoint will return 10 million values if 10 million documents match the que
94
94
95
95
| Variable | Description |
96
96
| ------------- | ------------- |
97
-
|**index name**| The index name|
97
+
|**index id**| The index id|
98
98
99
99
100
100
#### Get parameters
@@ -109,11 +109,11 @@ The endpoint will return 10 million values if 10 million documents match the que
109
109
|**outputFormat**|`String`| Response output format. `csv` or `clickHouseRowBinary`|`csv`|
110
110
111
111
112
-
### Response
113
-
The response is an HTTP stream. Depending on the client's capability, it is an HTTP1.1 (chunked transfer encoded stream)[https://en.wikipedia.org/wiki/Chunked_transfer_encoding] or an HTTP2 stream.
112
+
####Response
113
+
The response is an HTTP stream. Depending on the client's capability, it is an HTTP1.1 [chunked transfer encoded stream](https://en.wikipedia.org/wiki/Chunked_transfer_encoding) or an HTTP2 stream.
114
114
115
115
It returns a list of all the field values from documents matching the query. The field must be marked as "fast" in the index config for this to work.
116
116
The formatting is based on the specified output format.
117
117
118
-
On error, an "X-Stream-Error" header will be sent via the trailers channel with information about the error, and the stream will be closed via (`sender.abort()`)[https://docs.rs/hyper/latest/hyper/body/struct.Sender.html#method.abort].
118
+
On error, an "X-Stream-Error" header will be sent via the trailers channel with information about the error, and the stream will be closed via [`sender.abort()`](https://docs.rs/hyper/0.14.16/hyper/body/struct.Sender.html#method.abort).
119
119
Depending on the client, the trailer header with error details may not be shown. The error will also be logged in quickwit ("Error when streaming search results").
0 commit comments