-
Notifications
You must be signed in to change notification settings - Fork 98
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
Search by tag and tag substring returns no results #109
Comments
Yeah I'm pretty sure this is a bug, thanks for reporting! I think I know the problem and I'll try to fix it for next release. |
I fixed this in the following commit which will be included in the next major strfry release (1.0 series). The bug was an error in an optimisation related to the prefix matching of ids/authors filters which incorrectly applied to tags as well. I rolled the fix into a big refactor where prefix matching was removed altogether (since this feature was also removed from NIP-01). |
- this also fixes hoytech#109
- this also fixes hoytech#109
- this also fixes hoytech#109
- this also fixes hoytech#109
Hello!
Bug
When I send
REQ
with#t: ['photography']
, I receive plenty of results. But if I send#t: ['photography', 'photogr']
, the results are empty. For some reason, the unmatched substring tag cancels matched full tag.Sending
REQ
#t: ['photo', 'photography']
returns results withphoto
tag, results with both tags, but doesn't return results withphotography
only.The same happened with
#g
tag (geohash).Expected results
When I send
REQ
with#t: ['photography', 'photogr']
, I would expect to receive events with['t': 'photography']
tag.Context
I tested and reproduced this issue against relays
wss://relay.damus.io
,wss://nostr.wine
,wss://relayable.org
with issues.Tested against
wss://lightningrelay.com
which uses different software, without issues.It looks like the issue is with this software, but I'm not sure.
Used
nostr-tools
to send the requests.Thank you!
The text was updated successfully, but these errors were encountered: