0

I am querying mobile in stackoverflow. The second result is an answer. Results of /search/advanced is giving only questions when queried mobile. This is applicable for all other terms which are to be queried.

  • You need to provide exact instructions to duplicate this alleged bug. – Brock Adams May 10 '16 at 19:59
  • @BrockAdams: search_excerpt will give the expected result. It can search answers also. – amit jha May 31 '16 at 14:47
  • Note that I said as much in my first comment to the answer below. One more reason why this is a poor question. – Brock Adams May 31 '16 at 20:03
2

From the docs:

Searches a site for any questions which fit the given criteria.

(emphasis mine)

The searches on the API aren't guaranteed to exactly replicate the current on-site search, so this behaviour is expected. This may change in some future release of the API, but the current behaviour is closer to the old on-site search approach, which only ever returned questions as top-level results.

  • The /search paths can return answers too. The question is poor and should be closed. – Brock Adams May 11 '16 at 4:24
  • It's not really. They searched on the site and got an answer as the second result, they searched with the API and didn't, because the API doesn't return specific answers as results – Tim Stone May 11 '16 at 4:31
  • If that's true -- and the OP was by no means clear on that point -- then the question should be closed as a duplicate of this, or this, or this, or one of about 4 other questions. – Brock Adams May 11 '16 at 5:17
  • @BrockAdams the answers link given by you in the first comment is not not the required one. – amit jha May 11 '16 at 5:48
  • @BrockAdams also other questions are related but do not answer this question. they help but do not answer. – amit jha May 11 '16 at 5:55

You must log in to answer this question.

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