You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a queries collection which contains recommendations for the query. And when an account makes a search it is recorded in acount_query_searched collection as a history of searches.
When I am trying to join without sorting, everything works. When I try to sort, the following error is returned:
{'results': [{'code': 400, 'error': 'No references found to sort by on acount_query_searched.account_id.'}]}
Also when sorting is done like "sort_by": f"$acount_query_searched( _eval(account_id:={account_id}):desc)" I get the following error:
{'results': [{'code': 404, 'error': 'Referenced collection acount_query_searched: Could not find a field named _eval in the schema for sorting.'}]}
Description
I have a queries collection which contains recommendations for the query. And when an account makes a search it is recorded in acount_query_searched collection as a history of searches.
When I am trying to join without sorting, everything works. When I try to sort, the following error is returned:
{'results': [{'code': 400, 'error': 'No references found to sort by on
acount_query_searched.account_id
.'}]}Also when sorting is done like "sort_by": f"$acount_query_searched( _eval(account_id:={account_id}):desc)" I get the following error:
{'results': [{'code': 404, 'error': 'Referenced collection
acount_query_searched
: Could not find a field named_eval
in the schema for sorting.'}]}`
Steps to reproduce
Expected Behavior
My goal is to make a left join to the
queries
collection, so that searches made by that account are ranked higher than ones that are not.Actual Behavior
{'results': [{'code': 400, 'error': 'No references found to sort by on
acount_query_searched.account_id
.'}]}Metadata
Typesense Version: 27.1
OS: in docker containter image: typesense/typesense:27.1
The text was updated successfully, but these errors were encountered: