开发者

Yahoo Answers API - questionSearch - Filter out certain words

开发者 https://www.devze.com 2023-02-06 21:31 出处:网络
Is the Yahoo Answers API very limited on its functionality, or the documentation is incomplete?开发者_StackOverflow

Is the Yahoo Answers API very limited on its functionality, or the documentation is incomplete?

开发者_StackOverflow

Here is API ref: http://developer.yahoo.com/answers/V1/questionSearch.html

I'd need to be able to retrieve questions that contain termA or termB but neither termC or termD.

Example URL for questions containing termA: http://answers.yahooapis.com/AnswersService/V1/questionSearch?appid=YahooDemo&query=termA

Also, further information on the API will be helpful.

Thanks!


Some Googling showed that the query supports AND, OR, ANDNOT and brackets. So for a query that returns anything on cats but nothing on dogs:

http://answers.yahooapis.com/AnswersService/V1/questionSearch?appid=YahooDemo&query=cats+ANDNOT+dogs

As for the brackets, to query for anything that mentions cats or dogs but not fish:

http://answers.yahooapis.com/AnswersService/V1/questionSearch?appid=YahooDemo&query=(cats+dogs)+ANDNOT+fish

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号