4

I am using the search api to search for questions that are tagged with "tags" and not with "tags". However I have noticed that searching for tags is an OR search.

The questions search for tags is an AND search. Why the difference?

e.g. AND Search
http://api.stackoverflow.com/0.9/questions?tagged=php;mysql
OR Search
http://api.stackoverflow.com/0.9/search?tagged=php;mysql

Also would it be possible to switch the searching type from OR to AND on the search api by an option?

3
  • "tagged with questions and not with questions" typo? Jul 6, 2010 at 7:06
  • your question is not comprehensible. could you specify which path(s) you are referring to and example urls. Jul 6, 2010 at 7:41
  • 1
    Sorry folks, early morning etc...better now?
    – johnwards
    Jul 6, 2010 at 8:03

1 Answer 1

1

It seems to me that questions allows you to be more exclusive with your filter while search allows you to be more inclusive with your filter.

this flexibility is a good thing and, right now, I would not like to see it changed.

2
  • 1
    But you can't filter out questions that contain certain tags when searching using the question api call. I am also looking for flexibility, the ideal would be able to turn the search from an OR to and AND with an optional flag.
    – johnwards
    Jul 6, 2010 at 15:13
  • @john - you may have a point. i will give this some more thought when i get a few quiet moments. Jul 6, 2010 at 15:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .