Closed taylorkline closed 7 years ago
The API and the web-based search page are most likely returning different results due to them using different search engines.
About a month ago, Reddit launched a new search stack for their web-based search, but the Reddit API is still using the old search stack to ensure backwards compatibility. Currently there's no ETA as to when the new endpoint will be available.
For now you can try fielding your search query: NOT (flair:expired OR flair:meta) author:yunnansourcing OR selftext:\"yunnan sourcing\" OR selftext:\"yunnansourcing.com\" OR url:yunnansourcing
You got it @kwwxis!
NOT (flair:expired OR flair:meta) selftext:"yunnan sourcing" OR title:"yunnan sourcing" OR author:"yunnansourcing" OR selftext:"yunnansourcing" OR title:"yunnansourcing" OR site:"yunnansourcing.com" OR selftext:"yunnansourcing.com" OR title:"yunnansourcing.com"
...does the trick for a comprehensive search, returning the one result I expect. Thanks!
Issue Description
The following search produces zero results:
Despite the web-based search page returning 1 result.
It would appear that the praw
search
or the Reddit API is not supporting the phrase search quotation marks correctly.System Information
PRAW Version: 5.0.1 Python Version: 3.6 Operating System: Debian Testing