Skip to content
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

reddit link search is too broad #1025

Open
snarfed opened this issue Mar 26, 2021 · 2 comments
Open

reddit link search is too broad #1025

snarfed opened this issue Mar 26, 2021 · 2 comments
Labels

Comments

@snarfed
Copy link
Owner

snarfed commented Mar 26, 2021

our reddit link search currently uses selftext:"DOMAIN" to search for links in post text, but that has false positives. eg https://brid.gy/reddit/lgats has domain luke.lol, and https://www.reddit.com/search/?q=selftext%3A%22luke.lol%22 returns posts like https://www.reddit.com/r/summerhousebravo/comments/mdl6v6/ciara_sucks_we_can_say_it/ , which just includes the words Luke and lol far away from each other.

are there other search operators or syntax that do what we want? double quotes evidently don't. see https://www.reddit.com/wiki/search

from #1003:

Note that there is no guarantee that a selftext: match actually contains a link however the false-positives will be filtered out when searching for links to send the webmention.

...not quite true, since we're promiscuous and send wms to everything. not harmful, just a bit wasteful, which we're trying to cut down in #1021.

@edent
Copy link
Contributor

edent commented Nov 4, 2022

I'm not sure if it's helpful, but you can search for posts rather than mentions using /domain/

For example, https://www.reddit.com/domain/shkspr.mobi/

@snarfed
Copy link
Owner Author

snarfed commented Nov 4, 2022

Interesting! Looks like that's a specific part of the web UI though. I'm not seeing much effect on search, eg https://www.reddit.com/search?q=%2Fshkspr.mobi%2F , and we use the search API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants