I seem to get 48 results from the API:
http://i.wpne.ws/alAc
Do you still experience issues on your end? Have you managed to solve the issue by yourself?
No, the problem persists. As you can see in the results, none of them are for “thor”. Yet when you use the search from within the website, there are multiple accurate results shown.
I checked the few first posts returned by the API, and they all seem to include “thor”:
I hope this helps.
Good point. I didn’t catch that. However that really doesn’t help because the posts with the actual word “thor” in the titles aren’t returning when performing an api search.
A friend built a mobile app to query my site via the api, and has found that when he queried “thor”, there were no relevant results returned.
The API doesn’t include any real search endpoint yet, so I’m afraid that won’t be possible.
We’re continuously working on adding new endpoints though, so I’d suggest keeping an eye on our Developer site:
https://developer.wordpress.com/
We’ll mention it here as soon as we add a search endpoint.
Thanks for the update.
The one thing I still don’t understand is why the api search doesn’t at least return the thor posts? Not only is thor in the title, but it’s also in the post content multiple times. Seems as though those posts should be returned in the api search as well.
The posts are there, they just don’t appear at the top like in your site’s search:
http://i.wpne.ws/amv2
http://i.wpne.ws/amuZ
That’s why a proper search endpoint would be way better. We’re working on it!