Skip to content

Commit

Permalink
add all_text to projection stage
Browse files Browse the repository at this point in the history
  • Loading branch information
seankim658 committed Jun 12, 2024
1 parent 4a78ca4 commit ce15182
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/biomarker/backend_utils/list_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def list(api_request: Request) -> Tuple[Dict, int]:
formatted_results = _unroll_results(pipeline_result["results"])
perf_logger.end_timer(process_name="unroll_results")

perf_logger.log_times(request_arguments=request_arguments, search_query=search_query)
perf_logger.log_times(
request_arguments=request_arguments, search_query=search_query
)

results = {
"cache_info": cache_info,
Expand Down Expand Up @@ -214,7 +216,7 @@ def _search_query_builder(query_object: Dict, request_object: Dict) -> List:
sort_stage = {"$sort": {mapped_sort_field: reverse_flag}}
skip_stage = {"$skip": cleaned_offset}
limit_stage = {"$limit": limit}
project_results_stage = {"$project": {"_id": 0}}
project_results_stage = {"$project": {"_id": 0, "all_text": 0}}

if len(applied_filters) > 0:
for filter in applied_filters:
Expand Down

0 comments on commit ce15182

Please sign in to comment.