atproto
atproto copied to clipboard
Priority of search results when using `searchActorTypeahed`
Hi,
When we search for @yui.syui.ai
, we first enter @yui.
as follows, but @yui.syui.ai
is sorted as the 6th. As a matter of priority, it's possible that @yui.bsky.social
, the handle is very similar to @yui.syui.ai
, will be sorted as the first one, but in this example @yui.bsky.social
is appear as the fifth one.
Perhaps the results retrieved by displayName are preferred over handle.
https://github.com/bluesky-social/atproto/blob/4619e2b24a39e55897c027c9138c98fd47fe7325/packages/bsky/src/services/util/search.ts#L46-L135
Another example:
It seems that commit b5569121f89fe553eb857d5a31faad70235f5ddb on 2023
-08-08 fixed the search similarity formula related to this Issue, and the issue poster's issue has been fixed, but I found another problem example.
When I try to search for the "@mmm.bsky.social" account in a post or in the search input, typing "@mmm" results in other accounts such as "@mmmm" coming up on top. This may be unavoidable, but if I type "@mmm.bsky" further, the "@mmm.bsky.social" account comes up as the 6th account, and it appears lower in the list of candidates in the PC Web version, but not in the list of 5 candidates in the mobile version.
If there is a clear separation between words, it would be better to prioritize similarity on a word-by-word basis.
User completion was working until a week ago. However, it appears that user completion is not working again.
@syui do you have a more specific example of something broken right now?
We did deploy some pretty large changes to profile ("actor") search recently; the corresponding post search changes haven't gone live yet. I think that most of the issues raised above are at least partially resolved, based on my spot checks right now.
We do know that a very small fraction of accounts are currently not indexed in the profile index, if they do not have a "profile" record in their repository (even an empty record). It is also possible that a handful (dozens?) of accounts have failed to re-index.
display name : ai handle : yui.syui.ai
These may be a matter of priorities.