Skip to content

Commit 8a17558

Browse files
committed
Added relation_attributes parameter to IndexSearchRequest to specify the attributes to be included in each relationship that is included in the results of the search
1 parent e06bc05 commit 8a17558

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

pyatlan/HISTORY.md renamed to HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 0.0.20 (Apr 5, 2023)
22

33
* Corrected issue with from, size and track_total_hits in DSL object not being sent to server if the defaults weren't changed
4+
* Added relation_attributes parameter to IndexSearchRequest to specify the attributes to be included in each relationship that is included in the results of the search
45

56
## 0.0.19 (Mar 30, 2023)
67

pyatlan/model/search.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,10 @@ def validate_query(cls, v, values):
17481748

17491749
class IndexSearchRequest(AtlanObject):
17501750
dsl: DSL
1751-
attributes: list = Field(default_factory=list)
1751+
attributes: list[str] = Field(default_factory=list)
1752+
relation_attributes: list[str] = Field(
1753+
default_factory=list, alias="relationAttributes"
1754+
)
17521755

17531756
class Config:
17541757
json_encoders = {Query: lambda v: v.to_dict(), SortItem: lambda v: v.to_dict()}

0 commit comments

Comments
 (0)