New to type sense, I'm using type sense cloud and ...
# community-help
k
New to type sense, I'm using type sense cloud and trying to filter records using the filter_by and using a wildcard in the query field, what i want to do is let the filter take care of getting the right data and then sort by closest matches to a search by the user. The result set should have all the records but i need them to also be reranked based on the closest text matches on the
description
field in the records, is there a way i can achieve this ? This is what my search criteria looks like, but the
sort_by: _text_match:desc
doesn't work since i am using a wildcard and getting all documents.
Copy code
q: '*',
      query_by: 'answerContent',
      filter_by: filterConditions.join(' && '),
      sort_by: `_text_match:desc`,
f
Since you're querying by wildcard there isn't actually any text match score to measure by. You could look into
_eval
expressions. We go deeper into them on our ranking guide