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 AdamsCommented May 10, 2016 at 19:59
-
@BrockAdams: search_excerpt will give the expected result. It can search answers also.– amit jhaCommented May 31, 2016 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 AdamsCommented May 31, 2016 at 20:03
Add a comment
|
1 Answer
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. Commented May 11, 2016 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 ♦Commented May 11, 2016 at 4:31
-
-
@BrockAdams the answers link given by you in the first comment is not not the required one.– amit jhaCommented May 11, 2016 at 5:48
-
@BrockAdams also other questions are related but do not answer this question. they help but do not answer.– amit jhaCommented May 11, 2016 at 5:55