Seth Hoenig
350d9ebc40
api: implement fuzzy search API
...
This PR introduces the /v1/search/fuzzy API endpoint, used for fuzzy
searching objects in Nomad. The fuzzy search endpoint routes requests
to the Nomad Server leader, which implements the Search.FuzzySearch RPC
method.
Requests to the fuzzy search API are based on the api.FuzzySearchRequest
object, e.g.
{
"Text": "ed",
"Context": "all"
}
Responses from the fuzzy search API are based on the api.FuzzySearchResponse
object, e.g.
{
"Index": 27,
"KnownLeader": true,
"LastContact": 0,
"Matches": {
"tasks": [
{
"ID": "redis",
"Scope": [
"default",
"example",
"cache"
]
}
],
"evals": [],
"deployment": [],
"volumes": [],
"scaling_policy": [],
"images": [
{
"ID": "redis:3.2",
"Scope": [
"default",
"example",
"cache",
"redis"
]
}
]
},
"Truncations": {
"volumes": false,
"scaling_policy": false,
"evals": false,
"deployment": false
}
}
The API is tunable using the new server.search stanza, e.g.
server {
search {
fuzzy_enabled = true
limit_query = 200
limit_results = 1000
min_term_length = 5
}
}
These values can be increased or decreased, so as to provide more
search results or to reduce load on the Nomad Server. The fuzzy search
API can be disabled entirely by setting `fuzzy_enabled` to `false`.
2021-04-16 16:36:07 -06:00
..
2021-04-16 16:36:07 -06:00
2021-01-10 16:54:31 -06:00
2020-08-31 08:45:59 -04:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-12-01 11:11:34 -05:00
2020-11-20 13:38:29 -05:00
2020-12-01 11:11:34 -05:00
2020-11-20 13:38:29 -05:00
2020-12-01 11:11:34 -05:00
2020-12-09 11:05:18 -08:00
2020-10-12 08:47:05 -04:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-12-01 11:11:34 -05:00
2020-11-19 16:28:39 -05:00
2020-12-01 11:11:34 -05:00
2020-11-19 16:28:39 -05:00
2020-12-01 11:11:34 -05:00
2020-12-09 11:05:18 -08:00
2020-12-01 11:11:34 -05:00
2020-11-19 16:28:39 -05:00
2020-12-01 11:11:34 -05:00
2020-11-19 16:28:39 -05:00
2021-01-13 09:42:46 -05:00
2021-01-13 09:42:46 -05:00
2020-10-05 16:07:41 +02:00
2020-12-09 11:05:18 -08:00
2021-01-05 09:33:04 -08:00
2019-05-12 22:04:50 -04:00
2019-05-12 22:04:50 -04:00
2021-01-05 09:33:04 -08:00
2020-10-19 09:30:15 -04:00
2021-01-05 09:33:04 -08:00
2020-10-19 09:30:15 -04:00
2021-02-16 11:21:06 -05:00
2020-10-19 09:30:15 -04:00
2020-12-09 11:05:18 -08:00
2020-10-19 09:30:15 -04:00
2020-12-09 11:05:18 -08:00
2020-11-16 08:28:52 -05:00
2021-04-02 11:56:27 -04:00
2020-10-05 16:07:41 +02:00
2020-12-09 11:05:18 -08:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-06-22 10:27:25 -04:00
2021-04-01 11:16:52 -04:00
2020-03-31 09:45:21 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-12-14 10:07:27 -06:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2021-04-03 09:50:23 +02:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2021-02-03 21:29:05 +00:00
2020-11-02 09:57:35 -08:00
2020-11-02 18:00:53 -05:00
2018-12-12 09:17:31 -05:00
2018-12-10 12:18:24 -05:00
2021-02-01 11:12:22 -05:00
2021-04-02 11:56:27 -04:00
2018-12-04 11:50:59 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-12-14 10:07:27 -06:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2021-04-05 10:10:16 -06:00
2019-12-19 14:59:12 -05:00
2020-10-19 09:30:15 -04:00
2021-02-03 21:29:05 +00:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2019-04-12 20:55:55 +00:00
2020-10-21 14:05:46 -04:00
2020-12-14 10:07:27 -06:00
2020-10-19 09:30:15 -04:00
2020-12-14 10:07:27 -06:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-21 14:05:46 -04:00
2021-04-05 10:03:19 -06:00
2020-10-06 09:58:46 +02:00
2020-11-20 13:38:29 -05:00
2020-10-06 09:58:46 +02:00
2020-11-20 13:38:29 -05:00
2020-11-02 10:24:49 -08:00
2020-12-09 11:05:18 -08:00
2020-10-19 09:30:15 -04:00
2020-11-20 13:38:29 -05:00
2020-10-21 14:05:46 -04:00
2021-04-03 09:50:23 +02:00
2020-10-05 16:07:41 +02:00
2021-04-05 15:35:14 -04:00
2020-10-05 16:07:41 +02:00
2021-03-23 09:08:14 -04:00
2021-03-23 09:08:14 -04:00
2019-09-24 09:20:41 -07:00
2020-11-19 16:28:39 -05:00
2020-10-14 15:16:10 -04:00
2020-12-08 12:47:04 -08:00
2020-11-02 10:24:49 -08:00
2020-11-02 10:24:49 -08:00
2020-10-05 16:07:41 +02:00
2020-12-14 10:07:27 -06:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2021-02-23 08:31:19 -08:00
2020-10-05 16:07:41 +02:00
2020-12-09 11:05:18 -08:00
2020-10-05 16:07:41 +02:00
2020-12-09 11:05:18 -08:00
2020-10-05 16:07:41 +02:00
2020-12-09 11:05:18 -08:00
2020-10-05 16:07:41 +02:00
2020-12-09 11:05:18 -08:00
2020-11-30 11:12:06 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-12-14 10:07:27 -06:00
2021-03-09 08:31:38 -05:00
2021-04-03 09:50:23 +02:00
2020-10-05 16:07:41 +02:00
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-06-19 12:19:38 -04:00
2020-10-21 14:05:46 -04:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2020-11-19 16:28:39 -05:00
2020-05-21 20:04:38 -04:00
2020-08-31 13:56:54 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-03-23 13:58:30 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-09-24 11:44:59 -04:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-11-11 20:52:57 +00:00
2020-12-09 11:05:18 -08:00
2020-11-11 20:52:57 +00:00
2020-12-09 11:05:18 -08:00
2020-11-11 20:52:57 +00:00
2020-11-20 13:38:29 -05:00
2020-11-11 11:13:43 +00:00
2020-11-20 13:38:29 -05:00
2020-11-06 11:16:24 +01:00
2021-02-04 15:08:13 +00:00
2021-02-04 15:08:13 +00:00
2020-10-28 14:32:16 +00:00
2021-02-04 15:08:13 +00:00
2020-10-06 12:18:17 +02:00
2020-10-06 12:18:17 +02:00
2020-10-05 15:18:30 +02:00
2020-11-20 13:38:29 -05:00
2020-11-20 13:38:29 -05:00
2020-11-20 13:38:29 -05:00
2020-11-20 13:38:29 -05:00
2020-11-20 13:38:29 -05:00
2020-11-19 16:28:39 -05:00
2020-10-05 16:07:41 +02:00
2021-01-14 12:46:35 -08:00
2020-10-19 09:30:15 -04:00
2020-12-09 11:05:18 -08:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-10-05 16:07:41 +02:00
2020-11-20 13:38:29 -05:00
2020-01-13 11:34:46 +01:00
2020-01-13 11:34:46 +01:00
2020-01-13 11:34:46 +01:00
2020-01-13 11:34:46 +01:00
2021-04-12 13:56:55 -04:00
2020-06-25 12:44:19 -04:00
2021-03-31 16:37:09 -04:00
2021-03-31 16:37:09 -04:00
2021-03-31 16:37:09 -04:00
2021-03-18 14:32:40 -04:00
2021-03-18 14:32:40 -04:00
2021-04-07 11:24:09 -04:00
2021-04-02 11:48:26 -04:00
2021-04-02 11:48:26 -04:00
2020-11-20 13:38:29 -05:00
2021-04-07 12:00:33 -04:00
2021-04-01 11:16:52 -04:00
2021-04-08 13:32:19 -04:00
2021-04-08 13:32:19 -04:00
2020-10-05 16:07:41 +02:00
2021-03-12 10:39:09 -05:00
2021-03-31 16:37:09 -04:00