-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Mention" search on partial name #162
Comments
From #161 (comment) |
Have you tried the full-mentions plugin? It's roughly documented in the readme. Because it's a leveldb index, it should be possible to search for all entries that share a common prefix, using leveldb's |
I looked at it, but didn't find enough documentation to feel comfortable using it. It looked like it was documented as an example of how to implement an operator rather than something you could actually confidently use without it being deprecated or radically changed over new versions. |
Okay, so I just tried fullMentions. As it currently operates, it seems to run on an exact match system, and only on certain things. So, for example, if I do fullMentions('@6CAxOI3f+LUOVrbAl0IemqiS7ATpQvr9Mdw9LC4+Uv0=.ed25519') I get matches but if I do fullMentions('@6ca') I get nothing. If I do a search for a full blob ID, I get nothing. If I do a search for a full blob name that I know is in the database, I get nothing. |
For that matter, if I run I get messages. If I run I get nothing. |
Okay, so here's why it doesn't find blobs - they're ignored for indexing: |
Check the implementation at |
Any possibility of:
Currently the index only allows search by ID, and then searching can only be done by full ID. |
Tangentially related to #161, I have not been able to find a way to do a search on the name of a mention.
mentions
looks like it's only intended to search on IDs. For the purposes of ssb-meme, I'd like to be able to search for "ima" and get mentions of blobs which were named "image.png", "Imagine.jpg", etc. Doesn't need to be a full text search, but even just a search on the first bytes would be nice, case insensitive and ideally at less than 32 bits so that three characters like "ima" would work.The text was updated successfully, but these errors were encountered: