Skip to content

Commit b09a35e

Browse files
committed
Regenerated the client
1 parent cae9268 commit b09a35e

File tree

11 files changed

+16
-382
lines changed

11 files changed

+16
-382
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ docs/Highlight.md
2424
docs/HighlightFieldOption.md
2525
docs/HighlightFields.md
2626
docs/HitsHits.md
27-
docs/HitsHitsId.md
28-
docs/HitsHitsScore.md
2927
docs/IndexApi.md
3028
docs/InsertDocumentRequest.md
3129
docs/Join.md
@@ -85,8 +83,6 @@ manticoresearch/models/highlight.py
8583
manticoresearch/models/highlight_field_option.py
8684
manticoresearch/models/highlight_fields.py
8785
manticoresearch/models/hits_hits.py
88-
manticoresearch/models/hits_hits_id.py
89-
manticoresearch/models/hits_hits_score.py
9086
manticoresearch/models/insert_document_request.py
9187
manticoresearch/models/join.py
9288
manticoresearch/models/join_cond.py
@@ -140,8 +136,6 @@ test/test_highlight.py
140136
test/test_highlight_field_option.py
141137
test/test_highlight_fields.py
142138
test/test_hits_hits.py
143-
test/test_hits_hits_id.py
144-
test/test_hits_hits_score.py
145139
test/test_index_api.py
146140
test/test_insert_document_request.py
147141
test/test_join.py

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ Class | Method | HTTP request | Description
150150
- [HighlightFieldOption](docs/HighlightFieldOption.md)
151151
- [HighlightFields](docs/HighlightFields.md)
152152
- [HitsHits](docs/HitsHits.md)
153-
- [HitsHitsId](docs/HitsHitsId.md)
154-
- [HitsHitsScore](docs/HitsHitsScore.md)
155153
- [InsertDocumentRequest](docs/InsertDocumentRequest.md)
156154
- [Join](docs/Join.md)
157155
- [JoinCond](docs/JoinCond.md)

docs/HitsHits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Search hit representing a matched document
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**id** | [**HitsHitsId**](HitsHitsId.md) | | [optional]
10-
**score** | [**HitsHitsScore**](HitsHitsScore.md) | | [optional]
9+
**id** | **int** | The ID of the matched document | [optional]
10+
**score** | **int** | The score of the matched document | [optional]
1111
**source** | **object** | The source data of the matched document | [optional]
1212
**knn_dist** | **float** | The knn distance of the matched document returned for knn queries | [optional]
1313
**highlight** | **object** | The highlighting-related data of the matched document | [optional]

docs/HitsHitsId.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

docs/HitsHitsScore.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

manticoresearch/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
"HighlightFieldOption",
5252
"HighlightFields",
5353
"HitsHits",
54-
"HitsHitsId",
55-
"HitsHitsScore",
5654
"InsertDocumentRequest",
5755
"Join",
5856
"JoinCond",
@@ -117,8 +115,6 @@
117115
from manticoresearch.models.highlight_field_option import HighlightFieldOption as HighlightFieldOption
118116
from manticoresearch.models.highlight_fields import HighlightFields as HighlightFields
119117
from manticoresearch.models.hits_hits import HitsHits as HitsHits
120-
from manticoresearch.models.hits_hits_id import HitsHitsId as HitsHitsId
121-
from manticoresearch.models.hits_hits_score import HitsHitsScore as HitsHitsScore
122118
from manticoresearch.models.insert_document_request import InsertDocumentRequest as InsertDocumentRequest
123119
from manticoresearch.models.join import Join as Join
124120
from manticoresearch.models.join_cond import JoinCond as JoinCond

manticoresearch/models/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
from manticoresearch.models.highlight_field_option import HighlightFieldOption
3535
from manticoresearch.models.highlight_fields import HighlightFields
3636
from manticoresearch.models.hits_hits import HitsHits
37-
from manticoresearch.models.hits_hits_id import HitsHitsId
38-
from manticoresearch.models.hits_hits_score import HitsHitsScore
3937
from manticoresearch.models.insert_document_request import InsertDocumentRequest
4038
from manticoresearch.models.join import Join
4139
from manticoresearch.models.join_cond import JoinCond

manticoresearch/models/hits_hits.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,15 @@
2020

2121
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
2222
from typing import Any, ClassVar, Dict, List, Optional, Union
23-
from manticoresearch.models.hits_hits_id import HitsHitsId
24-
from manticoresearch.models.hits_hits_score import HitsHitsScore
2523
from typing import Optional, Set
2624
from typing_extensions import Self
2725

2826
class HitsHits(BaseModel):
2927
"""
3028
Search hit representing a matched document
3129
""" # noqa: E501
32-
id: Optional[HitsHitsId] = Field(default=None, alias="_id")
33-
score: Optional[HitsHitsScore] = Field(default=None, alias="_score")
30+
id: Optional[StrictInt] = Field(default=None, description="The ID of the matched document", alias="_id")
31+
score: Optional[StrictInt] = Field(default=None, description="The score of the matched document", alias="_score")
3432
source: Optional[Dict[str, Any]] = Field(default=None, description="The source data of the matched document", alias="_source")
3533
knn_dist: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The knn distance of the matched document returned for knn queries", alias="_knn_dist")
3634
highlight: Optional[Dict[str, Any]] = Field(default=None, description="The highlighting-related data of the matched document")
@@ -78,12 +76,6 @@ def to_dict(self) -> Dict[str, Any]:
7876
exclude=excluded_fields,
7977
exclude_none=True,
8078
)
81-
# override the default output from pydantic by calling `to_dict()` of id
82-
if self.id:
83-
_dict['_id'] = self.id.to_dict()
84-
# override the default output from pydantic by calling `to_dict()` of score
85-
if self.score:
86-
_dict['_score'] = self.score.to_dict()
8779
return _dict
8880

8981
@classmethod
@@ -96,8 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9688
return cls.model_validate(obj)
9789

9890
_obj = cls.model_validate({
99-
"_id": HitsHitsId.from_dict(obj["_id"]) if obj.get("_id") is not None else None,
100-
"_score": HitsHitsScore.from_dict(obj["_score"]) if obj.get("_score") is not None else None,
91+
"_id": obj.get("_id"),
92+
"_score": obj.get("_score"),
10193
"_source": obj.get("_source"),
10294
"_knn_dist": obj.get("_knn_dist"),
10395
"highlight": obj.get("highlight"),

manticoresearch/models/hits_hits_id.py

Lines changed: 0 additions & 144 deletions
This file was deleted.

0 commit comments

Comments
 (0)