atproto icon indicating copy to clipboard operation
atproto copied to clipboard

Priority of search results when using `searchActorTypeahed`

Open myConsciousness opened this issue 1 year ago • 5 comments

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.

スクリーンショット 2023-07-22 23 14 18

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

myConsciousness avatar Jul 22 '23 14:07 myConsciousness

Another example:

image

image

mozzius avatar Aug 13 '23 15:08 mozzius

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.

Bluesky mmm

If there is a clear separation between words, it would be better to prioritize similarity on a word-by-word basis.

henoya avatar Aug 20 '23 12:08 henoya

User completion was working until a week ago. However, it appears that user completion is not working again.

syui avatar Sep 30 '23 21:09 syui

@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.

bnewbold avatar Oct 02 '23 19:10 bnewbold

display name : ai handle : yui.syui.ai

These may be a matter of priorities.

syui avatar Oct 02 '23 22:10 syui