Hello! I am working on a use case where i need to ...
# community-help
j
Hello! I am working on a use case where i need to promote certain documents, while also using semantic search. I cannot figure out how to do this. As far as I understand, promoting documents can be done by sorting on a custom field (say
score
) as a secondary sort parameter.
Copy code
"sort_by": "_text_match:desc,score:desc"
This way, the score is used to break ties and higher scoring docs are promoted if the text match score are equal. When using semantic search and hybrid search, the results are, as far as i understand, ordered by a rank fusion score. The rank fusion score will different for all vectors, so typically there will never be a tie between documents. Since the score is only considered if there is a tie, it seems impossible to combine semantic/hybrid search with the promotion of high scoring documents. Am i missing something here? Please help me out.
k
For promoting specific documents for specific queries, curation via overrides is a better approach: https://typesense.org/docs/27.1/api/curation.html#create-or-update-an-override
j
thank you, I will read up on it.