@@ -108,7 +108,9 @@ class CollectionSearchByString(BaseCollectionSearchWithOther): # instant search
108108 query : str = Field (title = 'input query (with or without spaces) which is used to search for template collections' ,
109109 description = 'can not contain dots (.)' ,
110110 pattern = '^[^.]+$' , examples = ['zeus god' ])
111- mode : str = Field ('instant' , title = 'request mode: instant, domain_detail' , pattern = r'^(instant|domain_detail)$' )
111+ mode : str = Field ('instant' , title = 'request mode: instant, domain_detail' , pattern = r'^(instant|domain_detail)$' ,
112+ description = '* if instant - Learning to Rank is using a window size of 20\n '
113+ '* if domain_detail - Learning to Rank is using a window size of 100' )
112114 sort_order : Literal [SortOrder .AZ , SortOrder .ZA , SortOrder .AI , SortOrder .RELEVANCE ] = Field (SortOrder .AI , title = 'order of the resulting collections' ,
113115 description = '* if A-Z or Z-A - sort by title (alphabetically ascending/descending)\n '
114116 '* if AI - use intelligent endpoint-specific ranking (with Learning to Rank for optimal results)\n '
@@ -129,7 +131,6 @@ class CollectionCountByStringRequest(BaseCollectionRequest):
129131 query : str = Field (title = 'input query (with or without spaces) which is used to search for template collections' ,
130132 description = 'can not contain dots (.)' ,
131133 pattern = '^[^.]+$' , examples = ['zeus god' ])
132- mode : str = Field ('instant' , title = 'request mode: instant, domain_detail' , pattern = r'^(instant|domain_detail)$' )
133134
134135
135136# ======== Collection Membership ========
@@ -145,7 +146,6 @@ class CollectionsContainingLabelCountResponse(BaseCollectionQueryResponse):
145146
146147class CollectionsContainingLabelRequest (BaseCollectionSearchLimitOffsetSort ):
147148 label : str = Field (title = 'label for which membership will be checked for each collection' , examples = ['zeus' ])
148- mode : str = Field ('instant' , title = 'request mode: instant, domain_detail' , pattern = r'^(instant|domain_detail)$' )
149149 max_results : int = Field (3 , ge = 0 , title = 'max number of collections to return (for each page)' ,
150150 description = 'return collections at [offset, offset + max_results) positions (order as in sort_order)' )
151151 sort_order : Literal [SortOrder .AZ , SortOrder .ZA , SortOrder .AI , SortOrder .RELEVANCE ] = Field (SortOrder .AI , title = 'order of the resulting collections' ,
0 commit comments