Skip to content

Commit e0ba5f4

Browse files
committed
Regenerated client
1 parent cedbc41 commit e0ba5f4

File tree

11 files changed

+665
-50
lines changed

11 files changed

+665
-50
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ docs/AggCompositeSource.md
99
docs/AggCompositeTerm.md
1010
docs/AggTerms.md
1111
docs/Aggregation.md
12+
docs/AutocompleteRequest.md
1213
docs/BoolFilter.md
1314
docs/BulkResponse.md
1415
docs/DeleteDocumentRequest.md
@@ -61,6 +62,7 @@ manticoresearch/models/agg_composite_source.py
6162
manticoresearch/models/agg_composite_term.py
6263
manticoresearch/models/agg_terms.py
6364
manticoresearch/models/aggregation.py
65+
manticoresearch/models/autocomplete_request.py
6466
manticoresearch/models/bool_filter.py
6567
manticoresearch/models/bulk_response.py
6668
manticoresearch/models/delete_document_request.py
@@ -107,6 +109,7 @@ test/test_agg_composite_source.py
107109
test/test_agg_composite_term.py
108110
test/test_agg_terms.py
109111
test/test_aggregation.py
112+
test/test_autocomplete_request.py
110113
test/test_bool_filter.py
111114
test/test_bulk_response.py
112115
test/test_delete_document_request.py

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
Сlient for Manticore Search.
44

5-
❗ WARNING: this is a development version of the client. The latest release's readme is https://github.com/manticoresoftware/manticoresearch-python/tree/7.0.0
65

7-
❗ WARNING: the current version has breaking changes compared to the previous release https://github.com/manticoresoftware/manticoresearch-python/tree/6.0.0
6+
❗ WARNING: this is a development version of the client. The latest release's readme is https://github.com/manticoresoftware/manticoresearch-python/tree/7.0.0
87

98
## Requirements.
109

@@ -15,9 +14,10 @@ Minimum Manticore Search version is >= 2.5.1 with HTTP protocol enabled.
1514
| `manticoresearch-devel` | `dev` (latest development version) | 3.4 or newer | ✅ Fully Compatible |
1615
| 6.0.0 or newer | 7.0.0 or newer | 3.4 or newer | ✅ Fully Compatible |
1716
| 6.0.0 or newer | 6.2.1 to 7.0.0 | 3.4 or newer | ⚠️ Partially Compatible |
18-
| 3.3.1 to 6.0.0 | 6.2.1 or newer | 3.4 or newer | ✅ Fully Compatible |
19-
| 2.0.0 to 3.3.1 | 6.2.1 or newer | 3.4 or newer | ⚠️ Partially Compatible |
20-
| 2.0.0 to 3.3.1 | 4.2.1 to 6.2.1 | 3.4 or newer | ✅ Fully Compatible |
17+
| 3.3.1 to 6.0.0 | 7.0.0 or newer | 3.4 or newer | ⚠️ Partially Compatible |
18+
| 3.3.1 to 6.0.0 | 6.2.1 to 7.0.0 | 3.4 or newer | ✅ Fully Compatible |
19+
| 2.0.0 to 3.3.1 | 6.2.0 or newer | 3.4 or newer | ⚠️ Partially Compatible |
20+
| 2.0.0 to 3.3.1 | 4.2.1 to 6.2.0 | 3.4 or newer | ✅ Fully Compatible |
2121
| 1.0.6 to 2.0.0 | 4.0.2 to 4.2.1 | 3.4 or newer | ✅ Fully Compatible |
2222
| 1.0.5 to 1.0.6 | 4.0.2 to 4.2.1 | 2.7 or newer | ⚠️ Partially Compatible |
2323
| 1.0.5 to 1.0.6 | 2.5.1 to 4.0.2 | 2.7 or newer | ✅ Fully Compatible |
@@ -98,7 +98,7 @@ with manticoresearch.ApiClient(configuration) as api_client:
9898
print("The response of SearchApi->search:\n")
9999
pprint(search_response)
100100

101-
# Alternatively, you can pass all request arguments as JSON strings
101+
# Alternatively, you can pass all request arguments as a complex JSON object
102102
indexApi.insert({"index": "products", "doc" : {"title" : "Crossbody Bag with Tassel", "price" : 19.85}})
103103
indexApi.insert({"index": "products", "doc" : {"title" : "Pet Hair Remover Glove", "price" : 7.99}})
104104
search_response = searchApi.search({"index": "products", "query": {"query_string": "@title bag"}, "highlight":{"fields":{"title":{}}}})
@@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
120120
*IndexApi* | [**partial_replace**](docs/IndexApi.md#partial_replace) | **POST** /{table}/_update/{id} | Partially replaces a document in a table
121121
*IndexApi* | [**replace**](docs/IndexApi.md#replace) | **POST** /replace | Replace new document in a table
122122
*IndexApi* | [**update**](docs/IndexApi.md#update) | **POST** /update | Update a document in a table
123+
*SearchApi* | [**autocomplete**](docs/SearchApi.md#autocomplete) | **POST** /autocomplete | Performs an autocomplete search on a table
123124
*SearchApi* | [**percolate**](docs/SearchApi.md#percolate) | **POST** /pq/{table}/search | Perform reverse search on a percolate table
124125
*SearchApi* | [**search**](docs/SearchApi.md#search) | **POST** /search | Performs a search on a table
125126
*UtilsApi* | [**sql**](docs/UtilsApi.md#sql) | **POST** /sql | Perform SQL requests
@@ -132,6 +133,7 @@ Class | Method | HTTP request | Description
132133
- [AggCompositeTerm](docs/AggCompositeTerm.md)
133134
- [AggTerms](docs/AggTerms.md)
134135
- [Aggregation](docs/Aggregation.md)
136+
- [AutocompleteRequest](docs/AutocompleteRequest.md)
135137
- [BoolFilter](docs/BoolFilter.md)
136138
- [BulkResponse](docs/BulkResponse.md)
137139
- [DeleteDocumentRequest](docs/DeleteDocumentRequest.md)

docs/AutocompleteRequest.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# AutocompleteRequest
2+
3+
Object containing the data for performing an autocomplete search.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**table** | **str** | The table to perform the search on |
10+
**query** | **str** | The beginning of the string to autocomplete |
11+
**options** | **object** | Autocomplete options - layouts: A comma-separated string of keyboard layout codes to validate and check for spell correction. Available options - us, ru, ua, se, pt, no, it, gr, uk, fr, es, dk, de, ch, br, bg, be. By default, all are enabled. - fuzziness: (0,1 or 2) Maximum Levenshtein distance for finding typos. Set to 0 to disable fuzzy matching. Default is 2 - prepend: true/false If true, adds an asterisk before the last word for prefix expansion (e.g., *word ) - append: true/false If true, adds an asterisk after the last word for prefix expansion (e.g., word* ) - expansion_len: Number of characters to expand in the last word. Default is 10. | [optional]
12+
13+
## Example
14+
15+
```python
16+
from manticoresearch.models.autocomplete_request import AutocompleteRequest
17+
18+
# create an instance of AutocompleteRequest from a JSON string
19+
autocomplete_request_instance = AutocompleteRequest.from_json(json)
20+
# print the JSON string representation of the object
21+
print(AutocompleteRequest.to_json())
22+
23+
# convert the object into a dict
24+
autocomplete_request_dict = autocomplete_request_instance.to_dict()
25+
# create an instance of AutocompleteRequest from a dict
26+
autocomplete_request_from_dict = AutocompleteRequest.from_dict(autocomplete_request_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/IndexApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ No authorization required
300300
301301
Replace new document in a table
302302

303-
Replace an existing document. Input has same format as `insert` operation. <br/> Responds with an object in format: <br/> ``` {'table':'products','_id':1,'created':false,'result':'updated','status':200} ```
303+
Replace an existing document. Input has same format as `insert` operation. Responds with an object in format: ``` {'table':'products','_id':1,'created':false,'result':'updated','status':200} ```
304304

305305
### Example
306306

0 commit comments

Comments
 (0)