The method expects an object with the following mandatory properties:
* the name of the table to search
* the query string to autocomplete
For details, see the documentation on [**Autocomplete**](Autocomplete.md)
An example: ``` {
"table":"table_name",
"query":"query_beginning"
} ```
An example of the method's response:
```
[
{
"total": 3,
"error": "",
"warning": "",
"columns": [
{
"query": {
"type": "string"
}
}
],
"data": [
{
"query": "hello"
},
{
"query": "helio"
},
{
"query": "hell"
}
]
}
]
```
For more detailed information about the autocomplete queries, please refer to the documentation [here](https://manual.manticoresearch.com/Searching/Autocomplete).
Autocomplete is an example object payload from Manticore Search, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"operationId": "autocomplete",
"method": "POST",
"path": "/autocomplete",
"summary": "Performs an autocomplete search on a table",
"description": "\nThe method expects an object with the following mandatory properties:\n* the name of the table to search\n* the query string to autocomplete\nFor details, see the documentation on [**Autocomplete**](Autocomplete.md)\nAn example: ``` {\n \"table\":\"table_name\",\n \"query\":\"query_beginning\"\n} ```\nAn example of the method's response:\n\n ```\n [\n {\n \"total\": 3,\n \"error\": \"\",\n \"warning\": \"\",\n \"columns\": [\n {\n \"query\": {\n \"type\": \"string\"\n }\n }\n ],\n \"data\": [\n {\n \"query\": \"hello\"\n },\n {\n \"query\": \"helio\"\n },\n {\n \"query\": \"hell\"\n }\n ]\n }\n ] \n ```\n\nFor more detailed information about the autocomplete queries, please refer to the documentation [here](https://manual.manticoresearch.com/Searching/Autocomplete).\n",
"requestExample": [
"'request=AutocompleteRequest(table=\"test\",query=\"abc\")'"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.