Skip to content

Commit 5633f72

Browse files
algolia-botFluf22
andcommitted
fix(clients): processingTimeMS should be optional (generated)
algolia/api-clients-automation#5004 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent fca07d5 commit 5633f72

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

algoliasearch/composition/models/search_results_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class SearchResultsItem(BaseModel):
106106
""" Number of hits selected and sorted by the relevant sort algorithm. """
107107
parsed_query: Optional[str] = None
108108
""" Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched. """
109-
processing_time_ms: int
109+
processing_time_ms: Optional[int] = None
110110
""" Time the server took to process the request, in milliseconds. """
111111
processing_timings_ms: Optional[object] = None
112112
""" Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues. """

algoliasearch/recommend/models/recommendations_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class RecommendationsResults(BaseModel):
100100
""" Number of hits selected and sorted by the relevant sort algorithm. """
101101
parsed_query: Optional[str] = None
102102
""" Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched. """
103-
processing_time_ms: int
103+
processing_time_ms: Optional[int] = None
104104
""" Time the server took to process the request, in milliseconds. """
105105
processing_timings_ms: Optional[object] = None
106106
""" Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues. """

algoliasearch/search/models/browse_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class BrowseResponse(BaseModel):
103103
""" Number of hits selected and sorted by the relevant sort algorithm. """
104104
parsed_query: Optional[str] = None
105105
""" Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched. """
106-
processing_time_ms: int
106+
processing_time_ms: Optional[int] = None
107107
""" Time the server took to process the request, in milliseconds. """
108108
processing_timings_ms: Optional[object] = None
109109
""" Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues. """

algoliasearch/search/models/search_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class SearchResponse(BaseModel):
102102
""" Number of hits selected and sorted by the relevant sort algorithm. """
103103
parsed_query: Optional[str] = None
104104
""" Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched. """
105-
processing_time_ms: int
105+
processing_time_ms: Optional[int] = None
106106
""" Time the server took to process the request, in milliseconds. """
107107
processing_timings_ms: Optional[object] = None
108108
""" Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues. """

0 commit comments

Comments
 (0)